Пример #1
0
 public static void DoUpdate <T>(this FastRemoveList <T> list) where T : IUpdate
 {
     Profiler.BeginSample(FastRemoveList <T> .entitiesUpdate);
     T[] components = list.array;
     for (int i = 0, len = list.size; i < len; ++i)
     {
         Profiler.BeginSample(FastRemoveList <T> .entityUpdate);
         components[i].DoUpdate();
         Profiler.EndSample();
     }
     Profiler.EndSample();
 }
Пример #2
0
 public UpdateList(int capacity)
 {
     list = new FastRemoveList <T>(capacity);
 }
Пример #3
0
 public UpdateList()
 {
     list = new FastRemoveList <T>();
 }