コード例 #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);
        }