Example #1
0
        public override void OnEnable()
        {
            base.OnEnable();

            if (lights == null)
            {
                lights = new MaterialLightManager();
            }
        }
        public override void OnEnable()
        {
            base.OnEnable();

            if (lights == null)
            {
                lights = new MaterialLightManager();
            }

#if UNITY_EDITOR
            EditorApplication.update -= UpdateRaycasts;
            if (!this.ApplicationIsAboutToEnterPlayMode())
            {
                EditorApplication.update += UpdateRaycasts;
            }
#endif
        }