Exemplo n.º 1
0
 public void NextTurn()
 {
     _canCastRay = false;
     if (_currentPlayer == PlayerIndex.P1)
     {
         Player2Turn();
         if (_questSolver.CanBeSolved(_world.Quests, _world.P1Resources))
         {
             PlayerOneWinCanvas.SetActive(true);
         }
         else
         {
             PlayerTwoTurnCanvas.SetActive(true);
         }
     }
     else
     {
         Player1Turn();
         if (_questSolver.CanBeSolved(_world.Quests, _world.P2Resources))
         {
             PlayerTwoWinCanvas.SetActive(true);
         }
         else
         {
             PlayerOneTurnCanvas.SetActive(true);
         }
     }
 }
Exemplo n.º 2
0
 public void CloseNextTurnPanels()
 {
     _canCastRay = true;
     PlayerOneTurnCanvas.SetActive(false);
     PlayerTwoTurnCanvas.SetActive(false);
 }