diff --git a/Assets/Scipts/CharacterMovement.cs b/Assets/Scipts/CharacterMovement.cs index 50710ae..1095ea5 100644 --- a/Assets/Scipts/CharacterMovement.cs +++ b/Assets/Scipts/CharacterMovement.cs @@ -7,22 +7,26 @@ public class CharacterMovement : MonoBehaviour { public float Speed; GameObject localPlayer; public List Players = new List(); - public List Nearby = new List(); + List Nearby = new List(); public float DistanceToWin; Camera cam; public AudioSource Cheer; + private void Start() { localPlayer = Multiplayer.PlayersManager.Instance.LocalPlayer; Players.Add(localPlayer); + Nearby.Add(false); foreach (GameObject curPlayer in Multiplayer.PlayersManager.Instance.RemotePlayers.Values) { Players.Add(curPlayer); + Nearby.Add(false); } cam = localPlayer.GetComponentInChildren(); + } public bool CheckNearby()