void selectShip(GameObject ship) { networkPlayer.CmdSelectShip(ship.name); for (int count = 0; count < 3; count++) { if (ship.GetComponent <JPShip>().skills[count] != null) { ship.GetComponent <JPShip>().skills[count].ConfigureSkill(uiSkillButtons[count]); } else { uiSkillButtons[count].SetInvisible(); } } print("Selected Ship " + ship.name); cancelButton.SetActive(); //targetButton.SetActive(); moveButton.SetActive(); moveButton.toggleImage(0); }
void selectShip(GameObject ship) { networkPlayer.CmdSelectShip(ship.name); print("Selected Ship " + ship.name); }