private bool NeedActivate(ATween t) { if (t.IsPause == false && t.IsComplete == false) { t.OnStartEvent?.Invoke(); return(true); } return(false); }
private bool NeedDeactivate(ATween t) { bool needDeactive = false; if (t.IsComplete) { t.OnCompleteEvent?.Invoke(); needDeactive = true; } if (t.IsPause) { t.OnPauseEvent?.Invoke(); needDeactive = true; } return(needDeactive); }
public static void Forward(this ATween t) { TweenManager.Instance.Forward(t); }
public static void Pause(this ATween t) { TweenManager.Instance.Pause(t); }
public static void Backward(this ATween t) { TweenManager.Instance.Backward(t); }
public void Pause(ATween t) { t.IsPause = true; }
public void Reset(ATween t) { t.Reset(); }
public void Backward(ATween t) { t.Backward(); ActiveTweenList.Add(t); }
public void Forward(ATween t) { t.Forward(); ActiveTweenList.Add(t); }