Exemple #1
0
        void OnEnable()
        {
            if (!effectObj && !EffectParams.IsNull())
            {
                effectObj = EffectParams.Create(transform);
            }

            effectObj.Loop();
        }
        // ------------------------------------------------------

        public override void Loop()
        {
            if (factory.IsNull())
            {
                return;
            }

            PlayDynamicLight();

            if (factory.EnableGroundLight)
            {
                PlayFakeGroundLighting();
            }
        }