// Use this for initialization void Start() { ShipsButton = GameObject.Find("ShipsButton"); UpgradesButton = GameObject.Find("UpgradesButton"); ShipsPanel = GameObject.Find("ShipsPanel"); RepairsButton = GameObject.Find("RepairsButton"); RepairsPanel = GameObject.Find("RepairsPanel"); UpgradesPanel = GameObject.Find("UpgradesPanel"); ShipsPanel.SetActive(false); UpgradesPanel.SetActive(false); }
public void onRepairsClick() { UpgradesPanel.SetActive(false); ShipsPanel.SetActive(false); RepairsPanel.SetActive(true); }