public static void Init() { if (_instance == null) { _instance = new DaydreamLightingManager(); } }
public static void Init() { if (_instance == null) { _instance = new DaydreamLightingManager(); } if (!_instance.m_callbacksEnabled) { _instance.SetupCallbacks(); } }
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(); } }