|
@ -34,7 +34,6 @@ public class PlayerManager : MonoBehaviour |
|
|
newPlayer.transform.SetParent(transform, false); |
|
|
newPlayer.transform.SetParent(transform, false); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void AllowJoin(bool value) |
|
|
public void AllowJoin(bool value) |
|
|
{ |
|
|
{ |
|
|
if (value) |
|
|
if (value) |
|
@ -55,7 +54,15 @@ public class PlayerManager : MonoBehaviour |
|
|
{ |
|
|
{ |
|
|
Destroy(gameObject); |
|
|
Destroy(gameObject); |
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static void Clear() |
|
|
|
|
|
{ |
|
|
|
|
|
if (Instance != null) |
|
|
|
|
|
{ |
|
|
|
|
|
Instance.m_connectedPlayers.Players.Clear(); |
|
|
|
|
|
Destroy(Instance.gameObject); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |