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(); }
public UpdateList(int capacity) { list = new FastRemoveList <T>(capacity); }
public UpdateList() { list = new FastRemoveList <T>(); }