diff --git a/Assets/Prefabs/Traps/InGroundTrap.prefab b/Assets/Prefabs/Traps/InGroundTrap.prefab index c1dfff4..c2aa43b 100644 --- a/Assets/Prefabs/Traps/InGroundTrap.prefab +++ b/Assets/Prefabs/Traps/InGroundTrap.prefab @@ -45,7 +45,7 @@ MonoBehaviour: m_GameObject: {fileID: 3281312547625224785} m_Enabled: 1 m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 90d16cd20b1d52149ae6b3d4c15c79db, type: 3} + m_Script: {fileID: 11500000, guid: a1b0e7f03e96f154cb9c6ecd542406b7, type: 3} m_Name: m_EditorClassIdentifier: --- !u!1001 &1063799847781320221 @@ -128,10 +128,6 @@ PrefabInstance: m_Modification: m_TransformParent: {fileID: 3280778023726093299} m_Modifications: - - target: {fileID: 1989401929107402, guid: 0247930279caa4341ab23ddd2d4b69f8, type: 3} - propertyPath: m_Name - value: FanceWooden2 (4) - objectReference: {fileID: 0} - target: {fileID: 4004810153341632, guid: 0247930279caa4341ab23ddd2d4b69f8, type: 3} propertyPath: m_LocalPosition.x value: 0 @@ -176,6 +172,10 @@ PrefabInstance: propertyPath: m_LocalEulerAnglesHint.z value: 180 objectReference: {fileID: 0} + - target: {fileID: 1989401929107402, guid: 0247930279caa4341ab23ddd2d4b69f8, type: 3} + propertyPath: m_Name + value: FanceWooden2 (4) + objectReference: {fileID: 0} m_RemovedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 0247930279caa4341ab23ddd2d4b69f8, type: 3} --- !u!1001 &3281312546064687605 @@ -185,10 +185,6 @@ PrefabInstance: m_Modification: m_TransformParent: {fileID: 3281312547625224782} m_Modifications: - - target: {fileID: 1989401929107402, guid: 0247930279caa4341ab23ddd2d4b69f8, type: 3} - propertyPath: m_Name - value: FanceWooden2 (3) - objectReference: {fileID: 0} - target: {fileID: 4004810153341632, guid: 0247930279caa4341ab23ddd2d4b69f8, type: 3} propertyPath: m_LocalPosition.x value: 0 @@ -237,6 +233,10 @@ PrefabInstance: propertyPath: m_LocalScale.x value: 0.9 objectReference: {fileID: 0} + - target: {fileID: 1989401929107402, guid: 0247930279caa4341ab23ddd2d4b69f8, type: 3} + propertyPath: m_Name + value: FanceWooden2 (3) + objectReference: {fileID: 0} m_RemovedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 0247930279caa4341ab23ddd2d4b69f8, type: 3} --- !u!4 &3280778022459986741 stripped @@ -252,10 +252,6 @@ PrefabInstance: m_Modification: m_TransformParent: {fileID: 3280778023471378434} m_Modifications: - - target: {fileID: 1989401929107402, guid: 0247930279caa4341ab23ddd2d4b69f8, type: 3} - propertyPath: m_Name - value: FanceWooden2 (4) - objectReference: {fileID: 0} - target: {fileID: 4004810153341632, guid: 0247930279caa4341ab23ddd2d4b69f8, type: 3} propertyPath: m_LocalPosition.x value: 0 @@ -300,6 +296,10 @@ PrefabInstance: propertyPath: m_LocalEulerAnglesHint.z value: 180 objectReference: {fileID: 0} + - target: {fileID: 1989401929107402, guid: 0247930279caa4341ab23ddd2d4b69f8, type: 3} + propertyPath: m_Name + value: FanceWooden2 (4) + objectReference: {fileID: 0} m_RemovedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 0247930279caa4341ab23ddd2d4b69f8, type: 3} --- !u!1001 &3281312547073059897 @@ -309,10 +309,6 @@ PrefabInstance: m_Modification: m_TransformParent: {fileID: 3280778023765625369} m_Modifications: - - target: {fileID: 1989401929107402, guid: 0247930279caa4341ab23ddd2d4b69f8, type: 3} - propertyPath: m_Name - value: FanceWooden2 (4) - objectReference: {fileID: 0} - target: {fileID: 4004810153341632, guid: 0247930279caa4341ab23ddd2d4b69f8, type: 3} propertyPath: m_LocalPosition.x value: 0 @@ -357,6 +353,10 @@ PrefabInstance: propertyPath: m_LocalEulerAnglesHint.z value: 180 objectReference: {fileID: 0} + - target: {fileID: 1989401929107402, guid: 0247930279caa4341ab23ddd2d4b69f8, type: 3} + propertyPath: m_Name + value: FanceWooden2 (4) + objectReference: {fileID: 0} m_RemovedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 0247930279caa4341ab23ddd2d4b69f8, type: 3} --- !u!1001 &3281312547210150594 @@ -366,10 +366,6 @@ PrefabInstance: m_Modification: m_TransformParent: {fileID: 3281312547625224782} m_Modifications: - - target: {fileID: 1989401929107402, guid: 0247930279caa4341ab23ddd2d4b69f8, type: 3} - propertyPath: m_Name - value: FanceWooden2 (4) - objectReference: {fileID: 0} - target: {fileID: 4004810153341632, guid: 0247930279caa4341ab23ddd2d4b69f8, type: 3} propertyPath: m_LocalPosition.x value: -0.4 @@ -418,6 +414,10 @@ PrefabInstance: propertyPath: m_LocalScale.x value: 0.90000045 objectReference: {fileID: 0} + - target: {fileID: 1989401929107402, guid: 0247930279caa4341ab23ddd2d4b69f8, type: 3} + propertyPath: m_Name + value: FanceWooden2 (4) + objectReference: {fileID: 0} m_RemovedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 0247930279caa4341ab23ddd2d4b69f8, type: 3} --- !u!4 &3280778023471378434 stripped @@ -433,10 +433,6 @@ PrefabInstance: m_Modification: m_TransformParent: {fileID: 3280778022459986741} m_Modifications: - - target: {fileID: 1989401929107402, guid: 0247930279caa4341ab23ddd2d4b69f8, type: 3} - propertyPath: m_Name - value: FanceWooden2 (4) - objectReference: {fileID: 0} - target: {fileID: 4004810153341632, guid: 0247930279caa4341ab23ddd2d4b69f8, type: 3} propertyPath: m_LocalPosition.x value: 0 @@ -481,6 +477,10 @@ PrefabInstance: propertyPath: m_LocalEulerAnglesHint.z value: 180 objectReference: {fileID: 0} + - target: {fileID: 1989401929107402, guid: 0247930279caa4341ab23ddd2d4b69f8, type: 3} + propertyPath: m_Name + value: FanceWooden2 (4) + objectReference: {fileID: 0} m_RemovedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 0247930279caa4341ab23ddd2d4b69f8, type: 3} --- !u!1001 &3281312547451467993 @@ -490,10 +490,6 @@ PrefabInstance: m_Modification: m_TransformParent: {fileID: 3281312547625224782} m_Modifications: - - target: {fileID: 1989401929107402, guid: 0247930279caa4341ab23ddd2d4b69f8, type: 3} - propertyPath: m_Name - value: FanceWooden2 (1) - objectReference: {fileID: 0} - target: {fileID: 4004810153341632, guid: 0247930279caa4341ab23ddd2d4b69f8, type: 3} propertyPath: m_LocalPosition.x value: 0 @@ -542,6 +538,10 @@ PrefabInstance: propertyPath: m_LocalScale.x value: 0.9 objectReference: {fileID: 0} + - target: {fileID: 1989401929107402, guid: 0247930279caa4341ab23ddd2d4b69f8, type: 3} + propertyPath: m_Name + value: FanceWooden2 (1) + objectReference: {fileID: 0} m_RemovedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 0247930279caa4341ab23ddd2d4b69f8, type: 3} --- !u!4 &3280778023765625369 stripped @@ -557,10 +557,6 @@ PrefabInstance: m_Modification: m_TransformParent: {fileID: 3281312547625224782} m_Modifications: - - target: {fileID: 1989401929107402, guid: 0247930279caa4341ab23ddd2d4b69f8, type: 3} - propertyPath: m_Name - value: FanceWooden2 (2) - objectReference: {fileID: 0} - target: {fileID: 4004810153341632, guid: 0247930279caa4341ab23ddd2d4b69f8, type: 3} propertyPath: m_LocalPosition.x value: 0.4 @@ -609,6 +605,10 @@ PrefabInstance: propertyPath: m_LocalScale.x value: 0.90000045 objectReference: {fileID: 0} + - target: {fileID: 1989401929107402, guid: 0247930279caa4341ab23ddd2d4b69f8, type: 3} + propertyPath: m_Name + value: FanceWooden2 (2) + objectReference: {fileID: 0} m_RemovedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 0247930279caa4341ab23ddd2d4b69f8, type: 3} --- !u!4 &3280778023726093299 stripped diff --git a/Assets/Scripts/Traps/CannonShot.cs b/Assets/Scripts/Traps/CannonShot.cs index b8636b8..1fa1444 100644 --- a/Assets/Scripts/Traps/CannonShot.cs +++ b/Assets/Scripts/Traps/CannonShot.cs @@ -8,18 +8,17 @@ public class CannonShot : MonoBehaviour public bool shootingRight; public ConnectedClients clientData; GameObject player; - string charname = "Character"; + string charname; public List Names; Rigidbody rb; private void Start() { - Names.Add("Character"); rb = this.gameObject.GetComponent(); - /*for (int i = 0; i < clientData.AllClients.Count; i++) + for (int i = 0; i < clientData.AllClients.Count; i++) { Names.Add(clientData.AllClients[i].characterAnimal + "(Clone)"); - }*/ + } } IEnumerator PushLeftCoroutine(float time) diff --git a/Assets/Scripts/Traps/ConveyorBelt.cs b/Assets/Scripts/Traps/ConveyorBelt.cs index e885e10..3a8fe3a 100644 --- a/Assets/Scripts/Traps/ConveyorBelt.cs +++ b/Assets/Scripts/Traps/ConveyorBelt.cs @@ -9,7 +9,7 @@ public class ConveyorBelt : MonoBehaviour public ClientList clientData; bool characterOnBelt = false; GameObject player; - string charname = "Character"; + string charname; public List Names = new List(); public bool left; public bool forward; @@ -26,12 +26,7 @@ public class ConveyorBelt : MonoBehaviour private void Update() { - //for testing purposes - if (triggeranimate == true) - { - Animate(); - triggeranimate = false; - } + } @@ -59,7 +54,7 @@ public class ConveyorBelt : MonoBehaviour { player.GetComponent().conveyorMoveBackward(Direction.Back, 1.0f); } - else if (left == true) + if (left == true) { player.GetComponent().conveyorMoveLeft(Direction.Left, 1.0f); } diff --git a/Assets/Scripts/Traps/CrushingBoulder.cs b/Assets/Scripts/Traps/CrushingBoulder.cs index 66489f8..73556ce 100644 --- a/Assets/Scripts/Traps/CrushingBoulder.cs +++ b/Assets/Scripts/Traps/CrushingBoulder.cs @@ -18,17 +18,6 @@ public class CrushingBoulder : MonoBehaviour private void Update() { counter.text = countdown.ToString(); - //for testing purposes - if (triggeranimate == true) - { - Animate(); - triggeranimate = false; - } - if (triggeranimate1 == true) - { - returnToPosition(); - triggeranimate1 = false; - } } IEnumerator FallRaiseCoroutine(float dropDistance) diff --git a/Assets/Scripts/Traps/CubeWithCrystals.cs b/Assets/Scripts/Traps/CubeWithCrystals.cs index 7c8006d..20e3460 100644 --- a/Assets/Scripts/Traps/CubeWithCrystals.cs +++ b/Assets/Scripts/Traps/CubeWithCrystals.cs @@ -10,17 +10,7 @@ public class CubeWithCrystals : MonoBehaviour private void Update() { - //for testing purposes - if (triggeranimate == true) - { - Animate(); - triggeranimate = false; - } - if (triggeranimate1 == true) - { - returnToPosition(); - triggeranimate1 = false; - } + } IEnumerator GrowCoroutine() diff --git a/Assets/Scripts/Traps/FloatingOnWater.cs b/Assets/Scripts/Traps/FloatingOnWater.cs index 3d0fbad..66d6644 100644 --- a/Assets/Scripts/Traps/FloatingOnWater.cs +++ b/Assets/Scripts/Traps/FloatingOnWater.cs @@ -16,17 +16,7 @@ public class FloatingOnWater : MonoBehaviour private void Update() { - //for testing purposes - if (triggeranimate == true) - { - Animate(); - triggeranimate = false; - } - if (triggeranimate1 == true) - { - returnToPosition(); - triggeranimate1 = false; - } + } private void Start() diff --git a/Assets/Scripts/Traps/InGroundTrap.cs b/Assets/Scripts/Traps/InGroundTrap.cs index ad246d2..427f7ef 100644 --- a/Assets/Scripts/Traps/InGroundTrap.cs +++ b/Assets/Scripts/Traps/InGroundTrap.cs @@ -6,6 +6,6 @@ public class InGroundTrap : MonoBehaviour { public void Animate() { - Debug.Log("abs"); + Debug.Log("trap"); } } diff --git a/Assets/Scripts/Traps/InGroundTrap.cs.meta b/Assets/Scripts/Traps/InGroundTrap.cs.meta index c949264..74a00f3 100644 --- a/Assets/Scripts/Traps/InGroundTrap.cs.meta +++ b/Assets/Scripts/Traps/InGroundTrap.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 90d16cd20b1d52149ae6b3d4c15c79db +guid: a1b0e7f03e96f154cb9c6ecd542406b7 MonoImporter: externalObjects: {} serializedVersion: 2 diff --git a/Assets/Scripts/Traps/ShootingCannon.cs b/Assets/Scripts/Traps/ShootingCannon.cs index bf40bb8..f04aca9 100644 --- a/Assets/Scripts/Traps/ShootingCannon.cs +++ b/Assets/Scripts/Traps/ShootingCannon.cs @@ -21,18 +21,12 @@ public class ShootingCannon : MonoBehaviour private void Update() { counter.text = countdown.ToString(); - //for testing purposes - if (triggeranimate == true) - { - Animate(); - triggeranimate = false; - } } public void Animate() { countdown--; - // if (countdown == 0){ + if (countdown == 0){ GameObject shot = Instantiate(shootingObject, spawnLocation.position, Quaternion.identity); if (shootingRight == true) { @@ -43,7 +37,6 @@ public class ShootingCannon : MonoBehaviour shot.GetComponent().AddForce(shot.transform.forward * 500); } countdown = countdowntimer; - //} - + } } }