Пример #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);
        }
Пример #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);
        }