diff --git a/Assets/Scenes/sam_squad.unity b/Assets/Scenes/sam_squad.unity index 4cbd86c..5860c2d 100644 --- a/Assets/Scenes/sam_squad.unity +++ b/Assets/Scenes/sam_squad.unity @@ -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} diff --git a/Assets/Scripts/Squad.cs b/Assets/Scripts/Squad.cs index 7ad6783..5a772b8 100644 --- a/Assets/Scripts/Squad.cs +++ b/Assets/Scripts/Squad.cs @@ -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));