private MonsterManager focusedMonster; // monster selected by clicking cage void Start() { notifManager = GameObject.Find("Notifications").GetComponent <NotificationsManager> (); actionPanelRect = actionPanel.GetComponent <RectTransform> (); resources = gameObject.GetComponent <ResourcesManager> (); alertManager = GameObject.Find("AlertPanel").GetComponent <AlertPanelManager>(); boardHolder = new GameObject("Board").transform; alertManager.ClosePanel(); }
void Awake() { apm = this; alertMessageText = transform.GetChild(0).GetComponentInChildren <Text>(); }
void Start() { notifManager = GameObject.Find ("Notifications").GetComponent<NotificationsManager> (); actionPanelRect = actionPanel.GetComponent<RectTransform> (); resources = gameObject.GetComponent<ResourcesManager> (); alertManager = GameObject.Find ("AlertPanel").GetComponent<AlertPanelManager>(); boardHolder = new GameObject ("Board").transform; alertManager.ClosePanel(); }