Ejemplo n.º 1
0
        public static ITween <Color32> Color32PropertyTo(object self, string propertyName, Color32 to, float duration)
        {
            var tweenTarget = new PropertyTarget <Color32>(self, propertyName);
            var tween       = MrTween.CacheColor32Tweens ? QuickCache <Color32Tween> .Pop() : new Color32Tween();

            tween.Initialize(tweenTarget, to, duration);

            return(tween);
        }
Ejemplo n.º 2
0
        public static ITween <Vector4> Vector4PropertyTo(object self, string propertyName, Vector4 to, float duration)
        {
            var tweenTarget = new PropertyTarget <Vector4>(self, propertyName);
            var tween       = MrTween.CacheVector4Tweens ? QuickCache <Vector4Tween> .Pop() : new Vector4Tween();

            tween.Initialize(tweenTarget, to, duration);

            return(tween);
        }
Ejemplo n.º 3
0
        public static ITween <Quaternion> QuaternionPropertyTo(object self, string propertyName, Quaternion to, float duration)
        {
            var tweenTarget = new PropertyTarget <Quaternion>(self, propertyName);
            var tween       = MrTween.CacheQuaternionTweens ? QuickCache <QuaternionTween> .Pop() : new QuaternionTween();

            tween.Initialize(tweenTarget, to, duration);

            return(tween);
        }
Ejemplo n.º 4
0
        public static ITween <int> IntPropertyTo(object self, string propertyName, int to, float duration)
        {
            var tweenTarget = new PropertyTarget <int>(self, propertyName);
            var tween       = MrTween.CacheIntTweens ? QuickCache <IntTween> .Pop() : new IntTween();

            tween.Initialize(tweenTarget, to, duration);

            return(tween);
        }