Exemplo n.º 1
0
 public void PrepareAttack()
 {
     canPress = true;
     attackButton.SetActive(false);
     xAttack.SetActive(true);
     yAttack.SetActive(true);
     zAttack.SetActive(true);
     cursor.setZero();
     visiblegrid.Alternate();
     visiblegrid.changeView();
     if (visiblegrid.playerTurn)
     {
         output.text = "Player 1's Turn!";
     }
     else
     {
         output.text = "Player 2's Turn!";
     }
 }
Exemplo n.º 2
0
 void hideText()
 {
     placed++;
     if (placed == 1)
     {
         output.text = "Please select an underwater space for a Submarine: ";
         placeButton.GetComponentInChildren <Text>().text = "Select Space";
         subcount   = 0;
         planecount = 0;
         shipcount  = 0;
         visibleGrid.hidePlayerUnits();
         visibleGrid.Alternate();
         visibleGrid.playerTurn = false;
         placeButton.SetActive(true);
         attack.cursor.setZero();
     }
     else
     {
         visibleGrid.hideEnemyUnits();
         attack.PrepareAttack();
         attack.cursor.setZero();
     }
 }