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