예제 #1
0
 // updates server on game won (the server updates the opponent player)
 public static void UpdateServerPlayerWon(DTO_Player player)
 {
     if (GameController.gameType != Constants.GAME_TYPE_PLAY_ONLINE)
     {
         return;
     }
     duplexServiceClient.UpdateServerPlayerWon(GameController.currentPlayingGameID, player);
     if (GameController.loggedInAccountPlayerPlaying != null)
     {
         UnregisterClientOnServer();
     }
 }