コード例 #1
0
        public static ITween <float> FloatPropertyTo(object self, string memberName, float to, float duration)
        {
            var tweenTarget = new PropertyTarget <float>(self, memberName);
            var tween       = TweenManager.CacheFloatTweens ? Pool <FloatTween> .Obtain() : new FloatTween();

            tween.Initialize(tweenTarget, to, duration);

            return(tween);
        }
コード例 #2
0
        public static ITween <Vector3> Vector3PropertyTo(object self, string memberName, Vector3 to, float duration)
        {
            var tweenTarget = new PropertyTarget <Vector3>(self, memberName);
            var tween       = TweenManager.CacheVector3Tweens ? Pool <Vector3Tween> .Obtain() : new Vector3Tween();

            tween.Initialize(tweenTarget, to, duration);

            return(tween);
        }
コード例 #3
0
ファイル: PropertyTweens.cs プロジェクト: Hengle/cavesnez
        public static ITween <Vector2> vector2PropertyTo(object self, string propertyName, Vector2 to, float duration)
        {
            var tweenTarget = new PropertyTarget <Vector2>(self, propertyName);
            var tween       = TweenManager.cacheVector2Tweens ? Pool <Vector2Tween> .obtain() : new Vector2Tween();

            tween.initialize(tweenTarget, to, duration);

            return(tween);
        }
コード例 #4
0
        public static ITween <Color> ColorPropertyTo(object self, string memberName, Color to, float duration)
        {
            var tweenTarget = new PropertyTarget <Color>(self, memberName);
            var tween       = TweenManager.CacheColorTweens ? Pool <ColorTween> .Obtain() : new ColorTween();

            tween.Initialize(tweenTarget, to, duration);

            return(tween);
        }
コード例 #5
0
ファイル: PropertyTweens.cs プロジェクト: Hengle/cavesnez
        public static ITween <int> intPropertyTo(object self, string propertyName, int to, float duration)
        {
            var tweenTarget = new PropertyTarget <int>(self, propertyName);
            var tween       = TweenManager.cacheIntTweens ? Pool <IntTween> .obtain() : new IntTween();

            tween.initialize(tweenTarget, to, duration);

            return(tween);
        }
コード例 #6
0
ファイル: PropertyTweens.cs プロジェクト: Hengle/cavesnez
        public static ITween <Quaternion> quaternionPropertyTo(object self, string propertyName, Quaternion to, float duration)
        {
            var tweenTarget = new PropertyTarget <Quaternion>(self, propertyName);
            var tween       = TweenManager.cacheQuaternionTweens ? Pool <QuaternionTween> .obtain() : new QuaternionTween();

            tween.initialize(tweenTarget, to, duration);

            return(tween);
        }
コード例 #7
0
        public static ITween <Vector3> vector3PropertyTo(object self, string propertyName, Vector3 to, float duration)
        {
            var tweenTarget = new PropertyTarget <Vector3>(self, propertyName);
            var tween       = TweenManager.cacheVector3Tweens ? QuickCache <Vector3Tween> .pop() : new Vector3Tween();

            tween.initialize(tweenTarget, to, duration);

            return(tween);
        }
コード例 #8
0
        public static ITween <float> floatPropertyTo(object self, string propertyName, float to, float duration)
        {
            var tweenTarget = new PropertyTarget <float>(self, propertyName);
            var tween       = TweenManager.cacheFloatTweens ? QuickCache <FloatTween> .pop() : new FloatTween();

            tween.initialize(tweenTarget, to, duration);

            return(tween);
        }
コード例 #9
0
        public static ITween <Color> colorPropertyTo(object self, string propertyName, Color to, float duration)
        {
            var tweenTarget = new PropertyTarget <Color>(self, propertyName);
            var tween       = TweenManager.cacheColorTweens ? QuickCache <ColorTween> .pop() : new ColorTween();

            tween.initialize(tweenTarget, to, duration);

            return(tween);
        }