diff --git a/Assets/Prefabs/Traps/Conveyor Belt.prefab b/Assets/Prefabs/Traps/Conveyor Belt.prefab index 3471f42..a0919c5 100644 --- a/Assets/Prefabs/Traps/Conveyor Belt.prefab +++ b/Assets/Prefabs/Traps/Conveyor Belt.prefab @@ -44,7 +44,7 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 6692f0c965cb4fa41b616ba0991653a3, type: 3} m_Name: m_EditorClassIdentifier: - clientData: {fileID: 11400000, guid: 78d89605739516c4f9c66fb270137102, type: 2} + clientData: {fileID: 11400000, guid: ded0b21c3ef1e7049a1128c12e9401fe, type: 2} left: 0 forward: 0 triggeranimate: 0 diff --git a/Assets/Prefabs/Traps/FloatingOnWater.prefab b/Assets/Prefabs/Traps/FloatingOnWater.prefab index 6193676..7774a26 100644 --- a/Assets/Prefabs/Traps/FloatingOnWater.prefab +++ b/Assets/Prefabs/Traps/FloatingOnWater.prefab @@ -80,7 +80,7 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 13e596b7661bb0b43b4ef2f0432f5966, type: 3} m_Name: m_EditorClassIdentifier: - clientData: {fileID: 11400000, guid: 78d89605739516c4f9c66fb270137102, type: 2} + clientData: {fileID: 11400000, guid: ded0b21c3ef1e7049a1128c12e9401fe, type: 2} lilypad: {fileID: 3043143187275025574} triggeranimate: 0 triggeranimate1: 0 @@ -111,7 +111,7 @@ MonoBehaviour: m_EditorClassIdentifier: VisualOffset: {x: 0, y: 0, z: 0} is_Walkable: 1 - isWater: 0 + isWater: 1 isPit: 0 isSpawnable: 0 SpawnDirection: 2 diff --git a/Assets/Scenes/SinglePlayer Levels/TuteLevelOne.unity b/Assets/Scenes/SinglePlayer Levels/TuteLevelOne.unity index 3e9f598..5eaae95 100644 --- a/Assets/Scenes/SinglePlayer Levels/TuteLevelOne.unity +++ b/Assets/Scenes/SinglePlayer Levels/TuteLevelOne.unity @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:5cb0faa75a290c6cd189bfe71f72e626ecfe805efb476c81fe5907d4fc24962c +oid sha256:c8e8d2f57e329f92cb93b55207f5503202561f255ea42a94928d442f2242f556 size 214523 diff --git a/Assets/Scripts/Traps/ConveyorBelt.cs b/Assets/Scripts/Traps/ConveyorBelt.cs index a2fb628..9316039 100644 --- a/Assets/Scripts/Traps/ConveyorBelt.cs +++ b/Assets/Scripts/Traps/ConveyorBelt.cs @@ -2,14 +2,15 @@ using System.Collections.Generic; using UnityEngine; using Networking.Client; +using Networking.Server; public class ConveyorBelt : MonoBehaviour { - public ConnectedClients clientData; + public ClientList clientData; bool characterOnBelt = false; GameObject player; - string charname = "Character"; - private List Names; + string charname; + public List Names = new List(); public bool left; public bool forward; public bool triggeranimate; @@ -26,9 +27,9 @@ public class ConveyorBelt : MonoBehaviour private void Start() { - for (int i = 0; i < clientData.AllClients.Count; i++) + for (int i = 0; i < clientData.ConnectedClients.Count; i++) { - Names.Add(clientData.AllClients[i].characterAnimal + "(Clone)"); + Names.Add(clientData.ConnectedClients[i].characterAnimal + "(Clone)"); } } void OnTriggerEnter(Collider other) diff --git a/Assets/Scripts/Traps/FloatingOnWater.cs b/Assets/Scripts/Traps/FloatingOnWater.cs index f653f81..3d0fbad 100644 --- a/Assets/Scripts/Traps/FloatingOnWater.cs +++ b/Assets/Scripts/Traps/FloatingOnWater.cs @@ -1,16 +1,16 @@ using System.Collections; using System.Collections.Generic; using UnityEngine; -using Networking.Client; +using Networking.Server; public class FloatingOnWater : MonoBehaviour { bool characterInWater = true; - public ConnectedClients clientData; - private List Names; + public ClientList clientData; + public List Names = new List(); public GameObject lilypad; GameObject player; - string charName = "Character"; + string charName; public bool triggeranimate; public bool triggeranimate1; @@ -31,9 +31,9 @@ public class FloatingOnWater : MonoBehaviour private void Start() { - for(int i = 0; i < clientData.AllClients.Count; i++) + for(int i = 0; i < clientData.ConnectedClients.Count; i++) { - Names.Add(clientData.AllClients[i].characterAnimal + "(Clone)"); + Names.Add(clientData.ConnectedClients[i].characterAnimal + "(Clone)"); } } void OnTriggerEnter(Collider other) diff --git a/Assets/Scripts/UI/Client/LoginUIManager.cs b/Assets/Scripts/UI/Client/LoginUIManager.cs index 2782b4e..8f74c8c 100644 --- a/Assets/Scripts/UI/Client/LoginUIManager.cs +++ b/Assets/Scripts/UI/Client/LoginUIManager.cs @@ -179,7 +179,7 @@ public class LoginUIManager : MonoBehaviour hex = "#FF7B00"; break; case "Goat": - //lightblue + //cyan hex = "#00FFFF"; break; case "Horse":