From 988347d26bdea3c81b1647b89b053e6db1374665 Mon Sep 17 00:00:00 2001 From: MB Date: Sun, 27 Jan 2019 12:03:48 +1100 Subject: [PATCH] Quick broken chgange --- Assets/Scipts/CharacterMovement.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();