void Awake() { if (starsCounter == null) { starsCounter = FindObjectOfType <StarsCounter>(); } if (towerInfoMenu == null) { towerInfoMenu = FindObjectOfType <UpgradeMenuTowerInfo>(); } if (!subscribedToUpdateState) { subscribedToUpdateState = true; updateState += UpdateLocalInfo; } gameObject.SetActive(false); if (disabledButtonColor != new Color()) { disabledButtonColor = new Color(); } }
void Awake() { info = FindObjectOfType <UpgradeMenuTowerInfo>(); }