예제 #1
0
 public void NextTurn()
 {
     if (_boardController.isGameOver == false)
     {
         if (_boardController.isPlayerTurn)
         {
             if (!_boardController.IsPCTurn && _boardController.currentTurn < 10)
             {
                 _boardController.PCTurnText.gameObject.SetActive(false);
                 _boardController.playerTurnText.gameObject.SetActive(true);
             }
         }
         else
         {
             if (!_boardController.IsPCTurn && _boardController.currentTurn < 10)
             {
                 _boardController.playerTurnText.gameObject.SetActive(false);
                 _boardController.PCTurnText.gameObject.SetActive(true);
             }
             if (!_boardController.isPVP)
             {
                 StartCoroutine(_boardController.CallAI());
             }
         }
     }
 }