コード例 #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)));
 }