Esempio n. 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));
 }
Esempio n. 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));
 }
Esempio n. 3
0
        public static int KillAll(bool complete = false)
        {
            int num = complete ? DOTween.CompleteAndReturnKilledTot() : 0;

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