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