Ejemplo n.º 1
0
        public static ITween <int> intPropertyTo(object self, string propertyName, int from, int to, float duration)
        {
            var tweenTarget = new PropertyTarget <int>(self, propertyName);
            var tween       = new IntTween(tweenTarget, from, to, duration);

            return(tween);
        }
Ejemplo n.º 2
0
        public static ITween <Quaternion> quaternionPropertyTo(object self, string propertyName, Quaternion from, Quaternion to, float duration)
        {
            var tweenTarget = new PropertyTarget <Quaternion>(self, propertyName);
            var tween       = new QuaternionTween(tweenTarget, from, to, duration);

            return(tween);
        }
Ejemplo n.º 3
0
        public static ITween <Color32> color32PropertyTo(object self, string propertyName, Color32 from, Color32 to, float duration)
        {
            var tweenTarget = new PropertyTarget <Color32>(self, propertyName);
            var tween       = new Color32Tween(tweenTarget, from, to, duration);

            return(tween);
        }
Ejemplo n.º 4
0
        public static ITween <Vector4> vector4PropertyTo(object self, string propertyName, Vector4 from, Vector4 to, float duration)
        {
            var tweenTarget = new PropertyTarget <Vector4>(self, propertyName);
            var tween       = new Vector4Tween(tweenTarget, from, to, duration);

            return(tween);
        }
Ejemplo n.º 5
0
        public static ITween <Color32> color32PropertyTo(object self, string propertyName, Color32 to, float duration)
        {
            var tweenTarget = new PropertyTarget <Color32>(self, propertyName);
            var tween       = ZestKit.cacheColor32Tweens ? QuickCache <Color32Tween> .pop() : new Color32Tween();

            tween.initialize(tweenTarget, to, duration);

            return(tween);
        }
Ejemplo n.º 6
0
        public static ITween <Quaternion> quaternionPropertyTo(object self, string propertyName, Quaternion to, float duration)
        {
            var tweenTarget = new PropertyTarget <Quaternion>(self, propertyName);
            var tween       = ZestKit.cacheQuaternionTweens ? QuickCache <QuaternionTween> .pop() : new QuaternionTween();

            tween.initialize(tweenTarget, to, duration);

            return(tween);
        }
Ejemplo n.º 7
0
        public static ITween <Vector4> vector4PropertyTo(object self, string propertyName, Vector4 to, float duration)
        {
            var tweenTarget = new PropertyTarget <Vector4>(self, propertyName);
            var tween       = ZestKit.cacheVector4Tweens ? QuickCache <Vector4Tween> .pop() : new Vector4Tween();

            tween.initialize(tweenTarget, to, duration);

            return(tween);
        }
Ejemplo n.º 8
0
        public static ITween <int> intPropertyTo(object self, string propertyName, int to, float duration)
        {
            var tweenTarget = new PropertyTarget <int>(self, propertyName);
            var tween       = ZestKit.cacheIntTweens ? QuickCache <IntTween> .pop() : new IntTween();

            tween.initialize(tweenTarget, to, duration);

            return(tween);
        }
Ejemplo n.º 9
0
        public static ITween <Vector3> vector3PropertyTo(object self, string propertyName, Vector3 from, Vector3 to, float duration)
        {
            var tweenTarget = new PropertyTarget <Vector3>(self, propertyName);

            var tween = new Vector3Tween();

            tween.initialize(tweenTarget, from, to, duration);

            return(tween);
        }
Ejemplo n.º 10
0
        public static ITween <float> floatPropertyTo(object self, string propertyName, float from, float to, float duration)
        {
            var tweenTarget = new PropertyTarget <float>(self, propertyName);

            var tween = new FloatTween();

            tween.initialize(tweenTarget, from, to, duration);

            return(tween);
        }