コード例 #1
0
 public void StartPlayerTurn()
 {
     // if there is stil hp after damage, then player is alive
     if (thisHitPoints > 0)
     {
         thisPlayerState = State.eActivated;
         thisUiManager.UpdatePlayerTurn();
         // because npc won't be activated
         thisUiManager.ToggleAllCardsEmittable(true);
     }
     else
     {
         // enter zen mode
         thisPlayerState = State.eIdle;
         // activate npc
         thisNpcBehavior.StartNpcTurn();
     }
 }