Esempio n. 1
0
        public static ITween <Vector3> ZKlocalEulersTo(this Transform self, Vector3 to, float duration = 0.3f)
        {
            var tween = TransformVector3Tween.nextAvailableTween();

            tween.setTargetAndType(self, TransformTargetType.LocalEulerAngles);
            tween.initialize(tween, self.localEulerAngles, to, duration);

            return(tween);
        }
Esempio n. 2
0
        public static ITween <Vector3> ZKpositionTo(this Transform self, Vector3 to, float duration = 0.3f)
        {
            var tween = TransformVector3Tween.nextAvailableTween();

            tween.setTargetAndType(self, TransformTargetType.Position);
            tween.initialize(tween, self.position, to, duration);

            return(tween);
        }