Пример #1
0
 public static void Init()
 {
     if (_instance == null)
     {
         _instance = new DaydreamLightingManager();
     }
 }
Пример #2
0
        public static void Init()
        {
            if (_instance == null)
            {
                _instance = new DaydreamLightingManager();
            }

            if (!_instance.m_callbacksEnabled)
            {
                _instance.SetupCallbacks();
            }
        }
Пример #3
0
        void OnEnable()
        {
            DaydreamLightingManager.Init();
#if UNITY_EDITOR
            if (!Application.isPlaying)
            {
                Light l = gameObject.GetComponent <Light>();
                m_lightMode = l.LightMode();
            }
#endif
            // add lights to the master list
            if (m_lightMode != LightModes.BAKED)
            {
                AddToMasterList();
            }
        }