private void PlayTweenInmediatly(BaseTween tween, PlayMode playMode) { tweenList.Add(tween); tween.SetOnComplete(CheckIfSequenceIsComplete); tween.SetOnComplete(() => tween.SetIsPause(true)); if (!ignoreCommands) { commandQueue.Add(GetCommand(playMode, tween)); } }
private void PlayTweenOnComplete(BaseTween tween, BaseTween previousTween, PlayMode playMode) { tweenList.Add(tween); //pause the tween until it can actually run tween.SetIsPause(true); tween.SetOnComplete(() => tween.SetIsPause(true)); previousTween.SetOnComplete(delegate { RunTween(tween); }); tween.SetOnComplete(CheckIfSequenceIsComplete); if (!ignoreCommands) { commandQueue.Add(GetCommand(playMode, tween)); } }
public void Append(Action callback) { if (ShouldPlayInmediatly()) { callback.Invoke(); return; } head.SetOnComplete(callback); }
public override void Execute() { tween.ReplayReset(); tween.SetOnComplete(() => tween.IsComplete = true); sequence.Join(tween); }
private BaseTween ProcessTween(BaseTween tween) { tween.SetOnComplete(() => tween.IsComplete = true); tween.SetOnComplete(() => tween.Recycle(tween)); return(tween); }