コード例 #1
0
 public static int Kill(object targetOrId, bool complete = false)
 {
     if (targetOrId == null)
     {
         return(0);
     }
     return((complete ? DOTween.CompleteAndReturnKilledTot(targetOrId) : 0) + TweenManager.FilteredOperation(OperationType.Despawn, FilterType.TargetOrId, targetOrId, false, 0f, null, null));
 }
コード例 #2
0
 public static int KillAll(bool complete, params object[] idsOrTargetsToExclude)
 {
     if (idsOrTargetsToExclude == null)
     {
         return((complete ? DOTween.CompleteAndReturnKilledTot() : 0) + TweenManager.DespawnAll());
     }
     return((complete ? DOTween.CompleteAndReturnKilledTotExceptFor(idsOrTargetsToExclude) : 0) + TweenManager.FilteredOperation(OperationType.Despawn, FilterType.AllExceptTargetsOrIds, null, false, 0f, null, idsOrTargetsToExclude));
 }
コード例 #3
0
ファイル: DOTween.cs プロジェクト: garsonlab/GCube
        public static int KillAll(bool complete = false)
        {
            int num = complete ? DOTween.CompleteAndReturnKilledTot() : 0;

            return(num + TweenManager.DespawnAll());
        }