Beispiel #1
0
 void onTweenEnded(Entity e, TweenComponent tweenComponent, Tween tween)
 {
     e.AddCallOnFrameEnd((ent) => {
         tweenComponent.RemoveTween(tween);
         if (tweenComponent.tweens.Count == 0)
             e.RemoveTween();
         if (tween.OnComplete != null)
             tween.OnComplete(ent);
     });
 }
Beispiel #2
0
 void removeTweenIfExist(Entity e)
 {
     if (e.hasTween)
         e.RemoveTween();
 }