예제 #1
0
 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;
     }
 }
예제 #2
0
 public bool Remove(System.Action action)
 {
     return(HS_Scheduler.Remove(action));
 }
예제 #3
0
 public bool Remove(ref int taskId)
 {
     return(HS_Scheduler.Remove(ref taskId));
 }
예제 #4
0
 public bool Complete(ref int taskId)
 {
     return(HS_Scheduler.Complete(ref taskId));
 }
예제 #5
0
 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)));
 }
예제 #6
0
 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)));
 }
예제 #7
0
 public int EnterFrame(System.Action action)
 {
     return(Record(HS_Scheduler.Add(action, 0, -1, true)));
 }