|
@ -27,9 +27,9 @@ public class CharacterMovement : MonoBehaviour { |
|
|
|
|
|
|
|
|
public bool CheckNearby() |
|
|
public bool CheckNearby() |
|
|
{ |
|
|
{ |
|
|
bool found = false; |
|
|
|
|
|
for (int i = 0; i < Players.Count; i++) |
|
|
for (int i = 0; i < Players.Count; i++) |
|
|
{ |
|
|
{ |
|
|
|
|
|
bool found = false; |
|
|
if ((localPlayer.transform.position - Players[i].transform.position).magnitude < DistanceToWin) |
|
|
if ((localPlayer.transform.position - Players[i].transform.position).magnitude < DistanceToWin) |
|
|
{ |
|
|
{ |
|
|
Greet(); |
|
|
Greet(); |
|
|