Ejemplo n.º 1
0
 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();
     }
 }
Ejemplo n.º 2
0
 void Awake()
 {
     info = FindObjectOfType <UpgradeMenuTowerInfo>();
 }