示例#1
0
        public void OnModifyEnvironmentLighting(MoveEditor.MoveAnimationEvent e)
        {
            //EnvironmentLightingEventInfo evt = new EnvironmentLightingEventInfo(e.stringParameter);
            EnvironmentLightingEventInfo  evt        = e.EventRef as EnvironmentLightingEventInfo;
            EnvironmentLightingProperties properties = evt._lightingProperties;

            float duration = Mathf.Max(properties._multiplyDuration, properties._addDuration);

            _activeEnvLightingInfo = new EnvLightingInfo(properties, duration);
        }
示例#2
0
 public void Init(EnvironmentLightingProperties properties, float startTime)
 {
     _properties = properties;
     _startTime  = startTime;
     _duration   = Mathf.Max(properties._addDuration, properties._multiplyDuration);
 }
示例#3
0
 public EnvLightingInfo(EnvironmentLightingProperties properties, float duration)
 {
     _properties = properties;
     _duration   = duration;
     _time       = 0.0f;
 }