Beispiel #1
0
 public override void RecycleSelf()
 {
     base.RecycleSelf();
     if (shouldRecycleTween && Boing.CacheFloatTweens)
     {
         TweenCache <FloatTween> .Push(this);
     }
 }
Beispiel #2
0
 public override void RecycleSelf()
 {
     base.RecycleSelf();
     if (shouldRecycleTween && Boing.CacheQuaternionTweens)
     {
         TweenCache <QuaternionTween> .Push(this);
     }
 }
Beispiel #3
0
        public static Vector3Tween TweenPosition(this Transform self, Vector3 to, float duration = 0.5f)
        {
            TransformVector3Tween tween = TweenCache <TransformVector3Tween> .Pop();

            tween.SetTargetAndType(self, TransformTargetType.Position);
            tween.Initialize(tween, to, duration);
            return(tween);
        }
 public override void RecycleSelf()
 {
     if (shouldRecycleTween)
     {
         target    = null;
         nextTween = null;
         transform = null;
         TweenCache <TransformVector3Tween> .Push(this);
     }
 }
Beispiel #5
0
 public static Vector2Tween Create()
 {
     return(Boing.CacheVector2Tweens ? TweenCache <Vector2Tween> .Pop() : new Vector2Tween());
 }
Beispiel #6
0
 public static IntTween Create()
 {
     return(Boing.CacheIntTweens ? TweenCache <IntTween> .Pop() : new IntTween());
 }
Beispiel #7
0
 public static FloatTween Create()
 {
     return(Boing.CacheFloatTweens ? TweenCache <FloatTween> .Pop() : new FloatTween());
 }
Beispiel #8
0
 public static RectTween Create()
 {
     return(Boing.CacheRectTweens ? TweenCache <RectTween> .Pop() : new RectTween());
 }
Beispiel #9
0
 public static Color32Tween Create()
 {
     return(Boing.CacheColor32Tweens ? TweenCache <Color32Tween> .Pop() : new Color32Tween());
 }
Beispiel #10
0
 public static QuaternionTween Create()
 {
     return(Boing.CacheQuaternionTweens ? TweenCache <QuaternionTween> .Pop() : new QuaternionTween());
 }