// 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); }
void Start() { if (_upgradeProgress != null) { UpdateInfo(); } _upgradesPanel = FindObjectOfType <UpgradesPanel>(); if (_upgradeProgress.Special == null) { _costBG.gameObject.SetActive(false); } }
public void onRepairsClick() { UpgradesPanel.SetActive(false); ShipsPanel.SetActive(false); RepairsPanel.SetActive(true); }