From 177faf4943af3f52cea95282700f677e2177c479 Mon Sep 17 00:00:00 2001 From: MB Date: Sun, 27 Jan 2019 12:24:02 +1100 Subject: [PATCH] Big fixced --- Assets/Scipts/CharacterMovement.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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()