コード例 #1
0
ファイル: DOTween.cs プロジェクト: garsonlab/GCube
 public static int CompleteAndReturnKilledTot(object targetOrId)
 {
     if (targetOrId == null)
     {
         return(0);
     }
     return(TweenManager.FilteredOperation(OperationType.Complete, FilterType.TargetOrId, targetOrId, true, 0f, null));
 }
コード例 #2
0
ファイル: DOTween.cs プロジェクト: qingye5x/strangeioc
 /// <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));
 }
コード例 #3
0
ファイル: DOTween.cs プロジェクト: garsonlab/GCube
 public static int TogglePause(object targetOrId)
 {
     if (targetOrId == null)
     {
         return(0);
     }
     return(TweenManager.FilteredOperation(OperationType.TogglePause, FilterType.TargetOrId, targetOrId, false, 0f, null));
 }
コード例 #4
0
ファイル: DOTween.cs プロジェクト: qingye5x/strangeioc
 /// <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));
 }
コード例 #5
0
ファイル: DOTween.cs プロジェクト: garsonlab/GCube
 public static int PlayForward(object targetOrId)
 {
     if (targetOrId == null)
     {
         return(0);
     }
     return(TweenManager.FilteredOperation(OperationType.PlayForward, FilterType.TargetOrId, targetOrId, false, 0f, null));
 }
コード例 #6
0
ファイル: DOTween.cs プロジェクト: garsonlab/GCube
 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));
 }
コード例 #7
0
ファイル: DOTween.cs プロジェクト: garsonlab/GCube
 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));
 }
コード例 #8
0
ファイル: DOTween.cs プロジェクト: garsonlab/GCube
 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));
 }
コード例 #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);
 }
コード例 #10
0
ファイル: DOTween.cs プロジェクト: sladeByZsl/TweenEditor
 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));
 }
コード例 #11
0
ファイル: DOTween.cs プロジェクト: sladeByZsl/TweenEditor
 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));
 }
コード例 #12
0
ファイル: DOTween.cs プロジェクト: garsonlab/GCube
 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));
 }
コード例 #13
0
ファイル: DOTween.cs プロジェクト: garsonlab/GCube
 public static int SmoothRewind(object targetOrId)
 {
     if (targetOrId == null)
     {
         return(0);
     }
     return(TweenManager.FilteredOperation(OperationType.SmoothRewind, FilterType.TargetOrId, targetOrId, false, 0f, null));
 }
コード例 #14
0
ファイル: DOTween.cs プロジェクト: garsonlab/GCube
 public static int PlayForwardAll()
 {
     return(TweenManager.FilteredOperation(OperationType.PlayForward, FilterType.All, null, false, 0f, null));
 }
コード例 #15
0
ファイル: DOTween.cs プロジェクト: garsonlab/GCube
 public static int GotoAll(float to, bool andPlay = false)
 {
     return(TweenManager.FilteredOperation(OperationType.Goto, FilterType.All, null, andPlay, to, null));
 }
コード例 #16
0
ファイル: DOTween.cs プロジェクト: garsonlab/GCube
 public static int CompleteAndReturnKilledTot()
 {
     return(TweenManager.FilteredOperation(OperationType.Complete, FilterType.All, null, true, 0f, null));
 }
コード例 #17
0
ファイル: DOTween.cs プロジェクト: garsonlab/GCube
 public static int CompleteAll()
 {
     return(TweenManager.FilteredOperation(OperationType.Complete, FilterType.All, null, false, 0f, null));
 }
コード例 #18
0
ファイル: DOTween.cs プロジェクト: sladeByZsl/TweenEditor
 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));
 }
コード例 #19
0
ファイル: DOTween.cs プロジェクト: sladeByZsl/TweenEditor
 internal static int CompleteAndReturnKilledTotExceptFor(params object[] excludeTargetsOrIds)
 {
     return(TweenManager.FilteredOperation(OperationType.Complete, FilterType.AllExceptTargetsOrIds, null, true, 0f, null, excludeTargetsOrIds));
 }
コード例 #20
0
ファイル: DOTween.cs プロジェクト: sladeByZsl/TweenEditor
 public static int CompleteAll(bool withCallbacks = false)
 {
     return(TweenManager.FilteredOperation(OperationType.Complete, FilterType.All, null, false, withCallbacks ? ((float)1) : ((float)0), null, null));
 }
コード例 #21
0
ファイル: DOTween.cs プロジェクト: garsonlab/GCube
 public static int RewindAll(bool includeDelay = true)
 {
     return(TweenManager.FilteredOperation(OperationType.Rewind, FilterType.All, null, includeDelay, 0f, null));
 }
コード例 #22
0
ファイル: DOTween.cs プロジェクト: qingye5x/strangeioc
 /// <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));
 }
コード例 #23
0
ファイル: DOTween.cs プロジェクト: garsonlab/GCube
 public static int SmoothRewindAll()
 {
     return(TweenManager.FilteredOperation(OperationType.SmoothRewind, FilterType.All, null, false, 0f, null));
 }
コード例 #24
0
ファイル: DOTween.cs プロジェクト: qingye5x/strangeioc
 /// <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));
 }
コード例 #25
0
ファイル: DOTween.cs プロジェクト: garsonlab/GCube
 public static int TogglePauseAll()
 {
     return(TweenManager.FilteredOperation(OperationType.TogglePause, FilterType.All, null, false, 0f, null));
 }
コード例 #26
0
ファイル: DOTween.cs プロジェクト: qingye5x/strangeioc
 /// <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));
 }
コード例 #27
0
ファイル: DOTween.cs プロジェクト: garsonlab/GCube
 public static bool IsTweening(object targetOrId)
 {
     return(TweenManager.FilteredOperation(OperationType.IsTweening, FilterType.TargetOrId, targetOrId, false, 0f, null) > 0);
 }
コード例 #28
0
ファイル: DOTween.cs プロジェクト: garsonlab/GCube
 public static int FlipAll()
 {
     return(TweenManager.FilteredOperation(OperationType.Flip, FilterType.All, null, false, 0f, null));
 }