public static void registerLocalPlayer(int team, Action <string> sendNewBoard, bool isTCPPLayer = false) { localPlayers.Add(new LocalRealtimePlayer(team, sendNewBoard)); if (isTCPPLayer) { TCPPlayer = localPlayers [localPlayers.Count - 1]; } }
public static void resetController() { localPlayers.Clear(); TCPPlayer = null; }