public static Tweener SetStart(this TweenAnimation tweenAnimation) { var tweener = tweenAnimation.Tweener ?? tweenAnimation.CreateTweener(); tweener.SetStart(); return(tweener); }
public void EditorPlay() { if (!Application.isPlaying) { TweenManager.Ins.PreviewTweenerList.Add(Tweener); } else { if (Tweener == null) { TweenAnimation.CreateTweener(); } } TweenAnimation.SyncTweenerParams(); Tweener .SetPlayCallback(() => { EnableEditor = false; }) .SetStopCallback(() => { Tweener.SetStart(); EnableEditor = true; }) .Play(); EnableEditor = false; }
public static Tweener TogglePause(this TweenAnimation tweenAnimation) { var tweener = tweenAnimation.Tweener ?? tweenAnimation.CreateTweener(); tweener.TogglePause(); return(tweener); }
public static Tweener Stop(this TweenAnimation tweenAnimation, bool destroy = true) { var tweener = tweenAnimation.Tweener ?? tweenAnimation.CreateTweener(); tweener.Stop(destroy); return(tweener); }
public static Tweener Resume(this TweenAnimation tweenAnimation) { var tweener = tweenAnimation.Tweener ?? tweenAnimation.CreateTweener(); tweener.Resume(); return(tweener); }
public static Tweener PlayBackwardImmediately(this TweenAnimation tweenAnimation) { var tweener = tweenAnimation.Tweener ?? tweenAnimation.CreateTweener(); tweener.PlayBackward(true); return(tweener); }
public static Tweener PlayBackward(this TweenAnimation tweenAnimation, bool immediately = false) { var tweener = tweenAnimation.Tweener ?? tweenAnimation.CreateTweener(); tweener.PlayBackward(immediately); return(tweener); }
public static Tweener Play(this TweenAnimation tweenAnimation) { var tweener = tweenAnimation.Tweener ?? tweenAnimation.CreateTweener(); tweener.Play(); return(tweener); }
public static Tweener SetScheduleByRunTime(this TweenAnimation tweenAnimation, float runTime) { var tweener = tweenAnimation.Tweener ?? tweenAnimation.CreateTweener(); tweener.SetScheduleByRunTime(runTime); return(tweener); }
public void EditorApplyEdit() { if (EnableEditor) { if (Tweener != null) { TweenAnimation?.SyncTweenerParams(); } } EnableEditor = !EnableEditor; }