コード例 #1
0
 public void MarkAttackerReady(IApiClient client, RoundController roundController)
 {
     if (GameRoomController.GameRoomState == null || !GameRoomController.GameRoomState.IsBothPlayersConnected())
     {
         client.ErrorOccured("Trying mark attacker as ready before room created and/or both players are ready.");
         return;
     }
     client.AttackerWasMarkedReady();
     SetupState.IsAttackerReady = true;
     OnPlayerReady(client, roundController);
 }
コード例 #2
0
 public void MarkAttackerReady(IApiClient client, RoundController roundController)
 {
     if (GameRoomController.GameRoomState == null || !GameRoomController.GameRoomState.IsBothPlayersConnected())
     {
         client.ErrorOccured("Trying mark attacker as ready before room created and/or both players are ready.");
         return;
     }
     client.AttackerWasMarkedReady();
     SetupState.IsAttackerReady = true;
     OnPlayerReady(client, roundController);
 }