Beispiel #1
0
 //加入刷新队列
 //排序规则,从小到大排,越晚进队列的,越往后排
 public void AddInputUpdateList(MonoBehaviourInputSupport obj)
 {
     for (int i = 0; i < InputUpdateList.Count; i++)
     {
         if ((int)obj.CurrentInputUpdateLevel < (int)InputUpdateList[i].CurrentInputUpdateLevel)
         {
             InputUpdateList.Insert(i, obj);
             return;
         }
     }
     //队列里没元素,或者都比我小
     InputUpdateList.Add(obj);
 }
Beispiel #2
0
 //从刷新队列内删除掉
 public void DelInputUpdateList(MonoBehaviourInputSupport obj)
 {
     InputUpdateList.Remove(obj);
 }