public void Abort() { _alive = false; _jobs.Clear(); foreach (var thread in _threads) { thread.Abort(); } }
public int JobDropAll() { int droppedJobCount = 0; if (JobList.Count > 0) { JobList.Clear(); droppedJobCount = transform.childCount; transform.DestroyAllChildren(); } return(droppedJobCount); }