Exemple #1
0
        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];
            }
        }
Exemple #2
0
 public static void resetController()
 {
     localPlayers.Clear();
     TCPPlayer = null;
 }