Esempio n. 1
0
 public void OnMyShip(Enumerations.E_SHIPS newShip)
 {
     playerShip = newShip;
     shipDisplayButton.transform.GetChild(0).GetComponent<Text>().text = newShip.ToString();
 }
Esempio n. 2
0
 public void CmdShìpChange()
 {
     int shipCount = System.Enum.GetNames(typeof(Enumerations.E_SHIPS)).Length;
     if ((int)playerShip + 1 >= shipCount) {
         playerShip = 0;
     }
     else {
         playerShip += 1;
     }
 }