Exemple #1
0
        protected void Awake()
        {
            lux = LuxManager.Instance;
            if (lux.SettingsService == null)
            {
                Debug.LogError("Settings service is not initialized.");
            }

            uim = UIManager.Instance;
            if (uim == null)
            {
                Debug.LogError("UI Manager is not initialized.");
            }


            lm = LocationManager.Instance;
            if (lm == null)
            {
                Debug.LogError("Location Manager is not initialized.");
            }

            cg = GetComponent <CanvasGroup>();
        }
Exemple #2
0
        void Awake()
        {
            lux = LuxManager.Instance;
            lux.onStarted.AddListener(() =>
            { // Update UI once
                MainSection.UpdateUI();
                SettingsSection.UpdateUI();
                isUpdating = true;
            });

            lux.onStopped.AddListener(() =>
            {
                isUpdating = false;
            });


            mb_fio = ModalBackground.GetComponent <FadeInOutUI>();
            mb_ci  = ModalBackground.GetComponent <ClickableImage>();
            mb_ci.onClick.AddListener(() =>
            {
                HideModalView(); // can refactor here, decouple from specifically SettingsUIController
            });
            mb_fio.FadeOut(true);
        }