Exemple #1
0
 public static int CompleteAndReturnKilledTot(object targetOrId)
 {
     if (targetOrId == null)
     {
         return(0);
     }
     return(TweenManager.FilteredOperation(OperationType.Complete, FilterType.TargetOrId, targetOrId, true, 0f, null));
 }
Exemple #2
0
 /// <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));
 }
Exemple #3
0
 public static int TogglePause(object targetOrId)
 {
     if (targetOrId == null)
     {
         return(0);
     }
     return(TweenManager.FilteredOperation(OperationType.TogglePause, FilterType.TargetOrId, targetOrId, false, 0f, null));
 }
Exemple #4
0
 /// <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));
 }
Exemple #5
0
 public static int PlayForward(object targetOrId)
 {
     if (targetOrId == null)
     {
         return(0);
     }
     return(TweenManager.FilteredOperation(OperationType.PlayForward, FilterType.TargetOrId, targetOrId, false, 0f, null));
 }
Exemple #6
0
 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));
 }
Exemple #7
0
 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));
 }
Exemple #8
0
 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));
 }
Exemple #9
0
 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);
 }
Exemple #10
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));
 }
Exemple #11
0
 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));
 }
Exemple #12
0
 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));
 }
Exemple #13
0
 public static int SmoothRewind(object targetOrId)
 {
     if (targetOrId == null)
     {
         return(0);
     }
     return(TweenManager.FilteredOperation(OperationType.SmoothRewind, FilterType.TargetOrId, targetOrId, false, 0f, null));
 }
Exemple #14
0
 public static int PlayForwardAll()
 {
     return(TweenManager.FilteredOperation(OperationType.PlayForward, FilterType.All, null, false, 0f, null));
 }
Exemple #15
0
 public static int GotoAll(float to, bool andPlay = false)
 {
     return(TweenManager.FilteredOperation(OperationType.Goto, FilterType.All, null, andPlay, to, null));
 }
Exemple #16
0
 public static int CompleteAndReturnKilledTot()
 {
     return(TweenManager.FilteredOperation(OperationType.Complete, FilterType.All, null, true, 0f, null));
 }
Exemple #17
0
 public static int CompleteAll()
 {
     return(TweenManager.FilteredOperation(OperationType.Complete, FilterType.All, null, false, 0f, null));
 }
Exemple #18
0
 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));
 }
Exemple #19
0
 internal static int CompleteAndReturnKilledTotExceptFor(params object[] excludeTargetsOrIds)
 {
     return(TweenManager.FilteredOperation(OperationType.Complete, FilterType.AllExceptTargetsOrIds, null, true, 0f, null, excludeTargetsOrIds));
 }
Exemple #20
0
 public static int CompleteAll(bool withCallbacks = false)
 {
     return(TweenManager.FilteredOperation(OperationType.Complete, FilterType.All, null, false, withCallbacks ? ((float)1) : ((float)0), null, null));
 }
Exemple #21
0
 public static int RewindAll(bool includeDelay = true)
 {
     return(TweenManager.FilteredOperation(OperationType.Rewind, FilterType.All, null, includeDelay, 0f, null));
 }
Exemple #22
0
 /// <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));
 }
Exemple #23
0
 public static int SmoothRewindAll()
 {
     return(TweenManager.FilteredOperation(OperationType.SmoothRewind, FilterType.All, null, false, 0f, null));
 }
Exemple #24
0
 /// <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));
 }
Exemple #25
0
 public static int TogglePauseAll()
 {
     return(TweenManager.FilteredOperation(OperationType.TogglePause, FilterType.All, null, false, 0f, null));
 }
Exemple #26
0
 /// <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));
 }
Exemple #27
0
 public static bool IsTweening(object targetOrId)
 {
     return(TweenManager.FilteredOperation(OperationType.IsTweening, FilterType.TargetOrId, targetOrId, false, 0f, null) > 0);
 }
Exemple #28
0
 public static int FlipAll()
 {
     return(TweenManager.FilteredOperation(OperationType.Flip, FilterType.All, null, false, 0f, null));
 }