diff --git a/Assets/Scipts/CharacterMovement.cs b/Assets/Scipts/CharacterMovement.cs index 9b43b66..4b32d56 100644 --- a/Assets/Scipts/CharacterMovement.cs +++ b/Assets/Scipts/CharacterMovement.cs @@ -27,9 +27,9 @@ public class CharacterMovement : MonoBehaviour { public bool CheckNearby() { - bool found = false; for (int i = 0; i < Players.Count; i++) { + bool found = false; if ((localPlayer.transform.position - Players[i].transform.position).magnitude < DistanceToWin) { Greet();