Пример #1
0
        public static ITween <float> ZKspotAngleTo(this Light self, float to, float duration = 0.3f)
        {
            var tweenTarget = new LightTarget(self, LightTarget.LightTargetType.SpotAngle);
            var tween       = new FloatTween(tweenTarget, self.spotAngle, to, duration);

            return(tween);
        }
Пример #2
0
        public static ITween <Color> ZKcolorTo(this Light self, Color to, float duration = 0.3f)
        {
            var tweenTarget = new LightTarget(self);
            var tween       = new ColorTween(tweenTarget, self.color, to, duration);

            return(tween);
        }
Пример #3
0
        public static ITween <float> ZKintensityTo(this Light self, float to, float duration = 0.3f)
        {
            var tweenTarget = new LightTarget(self, LightTarget.LightTargetType.Intensity);
            var tween       = new FloatTween(tweenTarget, self.intensity, to, duration);

            return(tween);
        }