mirror of
https://github.com/ConjureETS/VZ.git
synced 2026-03-24 02:11:15 +00:00
- Added relative movement towards the squad leader (hard code)
This commit is contained in:
parent
df64a801c1
commit
a4320a4b80
@ -104,7 +104,7 @@ Prefab:
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 421072, guid: 55aad163f90cc4e40b686a69ba29569d, type: 2}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 1.13
|
||||
value: 8.80000019
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 421072, guid: 55aad163f90cc4e40b686a69ba29569d, type: 2}
|
||||
propertyPath: m_LocalRotation.x
|
||||
@ -529,7 +529,7 @@ Transform:
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1679803543}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: -6.63000011, y: 0, z: 0}
|
||||
m_LocalPosition: {x: -30.6599998, y: 0, z: -132.740005}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
|
||||
@ -219,6 +219,7 @@ public class Squad : Unit
|
||||
//Debug.Log(String.Format("Human parent before colision :{0}", unit.transform.name));
|
||||
unit.IsCaptured = true;
|
||||
unit.transform.parent = this.transform;
|
||||
unit.transform.localPosition = new Vector3(0, 0, 0);
|
||||
//Debug.Log(String.Format("Human parent before colision :{0}", unit.transform.parent.name));
|
||||
AddHuman(unit);
|
||||
Debug.Log(string.Format("{0} joined the squad of : {1} ", unit.gameObject.name, transform.gameObject.name));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user