// Use this for initialization void Start() { resources = gameObject.GetComponent <ResourcesManager> (); board = gameObject.GetComponent <BoardManager> (); }
// Use this for initialization void Start() { resources = gameObject.GetComponent<ResourcesManager> (); board = gameObject.GetComponent<BoardManager> (); }
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(); }