/**** Coroutine ****/ IEnumerator WaitForGameManagerAndConfig() { while (this.gameManager == null || this.config == null || this.monthBuilder == null) { this.gameManager = GameManager.GetInstance(); this.config = ConfigSetup.GetInstance(); this.monthBuilder = MonthBuilder.GetInstance(); yield return(null); } InitBackgroundSetup(); }
public static CameraNotification BlockInput; // used to block user input on all areas of screen except for the modal when spawned private void Awake() { this.gameManager = GameManager.GetInstance(); this.monthBuilder = MonthBuilder.GetInstance(); // spawn the modal but hide it. The modal base size is the size of the entire calendar this.modal = Instantiate(this.modalPrefab, this.gameObject.transform, false); this.modalState = ModalUI.ModalState.NoState; this.modal.SetActive(false); ModalUI.NotifyCaller += ModalCloseEvent; DayUI.NotifyCalendarSelectDay += DaySelected; MonthUI.NotifyCurrentDay += SetCurrentDayTransform; }