public void Destroy() { if (mTaskIds != null) { for (int i = mTaskIds.Count - 1; i >= 0; i--) { int taskId = mTaskIds[i]; HS_Scheduler.Remove(ref taskId); } mTaskIds = null; } }
public bool Remove(System.Action action) { return(HS_Scheduler.Remove(action)); }
public bool Remove(ref int taskId) { return(HS_Scheduler.Remove(ref taskId)); }
public bool Complete(ref int taskId) { return(HS_Scheduler.Complete(ref taskId)); }
public int Interval(System.Action action, float interval, int repeatCount, bool ignoreTimeScale = true) { return(Record(HS_Scheduler.Add(action, System.Convert.ToInt32(interval * 1000), repeatCount, ignoreTimeScale))); }
public int Timeout(System.Action action, float interval = 0, bool ignoreTimeScale = true) { return(Record(HS_Scheduler.Add(action, System.Convert.ToInt32(interval * 1000), 1, ignoreTimeScale))); }
public int EnterFrame(System.Action action) { return(Record(HS_Scheduler.Add(action, 0, -1, true))); }