public static int CompleteAndReturnKilledTot(object targetOrId) { if (targetOrId == null) { return(0); } return(TweenManager.FilteredOperation(OperationType.Complete, FilterType.TargetOrId, targetOrId, true, 0f, null)); }
/// <summary>Completes all tweens with the given ID or target and returns the number of actual tweens completed /// (meaning the tweens that don't have infinite loops and were not already complete)</summary> public static int Complete(object targetOrId) { if (targetOrId == null) { return(0); } return(TweenManager.FilteredOperation(OperationType.Complete, FilterType.TargetOrId, targetOrId, false, 0)); }
public static int TogglePause(object targetOrId) { if (targetOrId == null) { return(0); } return(TweenManager.FilteredOperation(OperationType.TogglePause, FilterType.TargetOrId, targetOrId, false, 0f, null)); }
/// <summary>Kills all tweens with the given ID or target and returns the number of actual tweens killed</summary> public static int Kill(object targetOrId) { if (targetOrId == null) { return(0); } return(TweenManager.FilteredOperation(OperationType.Despawn, FilterType.TargetOrId, targetOrId, false, 0)); }
public static int PlayForward(object targetOrId) { if (targetOrId == null) { return(0); } return(TweenManager.FilteredOperation(OperationType.PlayForward, FilterType.TargetOrId, targetOrId, false, 0f, null)); }
public static int Play(object target, object id) { if (target == null || id == null) { return(0); } return(TweenManager.FilteredOperation(OperationType.Play, FilterType.TargetAndId, id, false, 0f, target)); }
public static int Rewind(object targetOrId, bool includeDelay = true) { if (targetOrId == null) { return(0); } return(TweenManager.FilteredOperation(OperationType.Rewind, FilterType.TargetOrId, targetOrId, includeDelay, 0f, null)); }
public static int Goto(object targetOrId, float to, bool andPlay = false) { if (targetOrId == null) { return(0); } return(TweenManager.FilteredOperation(OperationType.Goto, FilterType.TargetOrId, targetOrId, andPlay, to, null)); }
public static int PlayForward(object target, object id) { if (target != null && id != null) { return(TweenManager.FilteredOperation(OperationType.PlayForward, FilterType.TargetAndId, id, false, 0f, target, null)); } return(0); }
public static int Kill(object targetOrId, bool complete = false) { if (targetOrId == null) { return(0); } return((complete ? CompleteAndReturnKilledTot(targetOrId) : 0) + TweenManager.FilteredOperation(OperationType.Despawn, FilterType.TargetOrId, targetOrId, false, 0f, null, null)); }
public static int Complete(object targetOrId, bool withCallbacks = false) { if (targetOrId == null) { return(0); } return(TweenManager.FilteredOperation(OperationType.Complete, FilterType.TargetOrId, targetOrId, false, withCallbacks ? ((float)1) : ((float)0), null, null)); }
public static int Restart(object target, object id, bool includeDelay) { if (target == null || id == null) { return(0); } return(TweenManager.FilteredOperation(OperationType.Restart, FilterType.TargetAndId, id, includeDelay, 0f, target)); }
public static int SmoothRewind(object targetOrId) { if (targetOrId == null) { return(0); } return(TweenManager.FilteredOperation(OperationType.SmoothRewind, FilterType.TargetOrId, targetOrId, false, 0f, null)); }
public static int PlayForwardAll() { return(TweenManager.FilteredOperation(OperationType.PlayForward, FilterType.All, null, false, 0f, null)); }
public static int GotoAll(float to, bool andPlay = false) { return(TweenManager.FilteredOperation(OperationType.Goto, FilterType.All, null, andPlay, to, null)); }
public static int CompleteAndReturnKilledTot() { return(TweenManager.FilteredOperation(OperationType.Complete, FilterType.All, null, true, 0f, null)); }
public static int CompleteAll() { return(TweenManager.FilteredOperation(OperationType.Complete, FilterType.All, null, false, 0f, null)); }
public static int KillAll(bool complete, params object[] idsOrTargetsToExclude) { if (idsOrTargetsToExclude == null) { return((complete ? CompleteAndReturnKilledTot() : 0) + TweenManager.DespawnAll()); } return((complete ? CompleteAndReturnKilledTotExceptFor(idsOrTargetsToExclude) : 0) + TweenManager.FilteredOperation(OperationType.Despawn, FilterType.AllExceptTargetsOrIds, null, false, 0f, null, idsOrTargetsToExclude)); }
internal static int CompleteAndReturnKilledTotExceptFor(params object[] excludeTargetsOrIds) { return(TweenManager.FilteredOperation(OperationType.Complete, FilterType.AllExceptTargetsOrIds, null, true, 0f, null, excludeTargetsOrIds)); }
public static int CompleteAll(bool withCallbacks = false) { return(TweenManager.FilteredOperation(OperationType.Complete, FilterType.All, null, false, withCallbacks ? ((float)1) : ((float)0), null, null)); }
public static int RewindAll(bool includeDelay = true) { return(TweenManager.FilteredOperation(OperationType.Rewind, FilterType.All, null, includeDelay, 0f, null)); }
/// <summary>Plays backwards all tweens and returns the number of actual tweens played /// (meaning tweens that were not already started, playing backwards or rewinded)</summary> public static int PlayBackwards() { return(TweenManager.FilteredOperation(OperationType.PlayBackwards, FilterType.All, null, false, 0)); }
public static int SmoothRewindAll() { return(TweenManager.FilteredOperation(OperationType.SmoothRewind, FilterType.All, null, false, 0f, null)); }
/// <summary>Restarts all tweens, then returns the number of actual tweens restarted</summary> public static int Restart(bool includeDelay) { return(TweenManager.FilteredOperation(OperationType.Restart, FilterType.All, null, includeDelay, 0)); }
public static int TogglePauseAll() { return(TweenManager.FilteredOperation(OperationType.TogglePause, FilterType.All, null, false, 0f, null)); }
/// <summary>Pauses all tweens and returns the number of actual tweens paused</summary> public static int Pause() { return(TweenManager.FilteredOperation(OperationType.Pause, FilterType.All, null, false, 0)); }
public static bool IsTweening(object targetOrId) { return(TweenManager.FilteredOperation(OperationType.IsTweening, FilterType.TargetOrId, targetOrId, false, 0f, null) > 0); }
public static int FlipAll() { return(TweenManager.FilteredOperation(OperationType.Flip, FilterType.All, null, false, 0f, null)); }