Exemple #1
0
 bool checkTurn(DataPlayer player)
 {
     if (Turn == 0)
     {
         return(player.Equals(Player1));
     }
     else
     {
         return(player.Equals(Player2));
     }
 }
Exemple #2
0
 public void playerUpdated(DataPlayer player)
 {
     if (player2.Equals(player) || player1.Equals(player))
     {
         setUpMatchStartingValue();
     }
 }