Beispiel #1
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();
     }
 }