| . | |
| using System; |
| |
| using System.Collections.Generic; |
| |
| |
| |
| public static class MonoUpdatersExtra |
| |
| { |
| |
| public static void UpdateAI(this List<IUpdateAI> container, List<IUpdateAI> source, string profileScope, float deltaTime) |
| |
| { |
| |
| container.AddRange(source); |
| |
| foreach (IUpdateAI updateAI in container) |
| |
| { |
| |
| updateAI.UpdateAI(deltaTime); |
| |
| } |
| |
| container.Clear(); |
| |
| } |
| |
| |
| |
| public static void CustomFixedUpdate(this List<IMonoUpdater> container, List<IMonoUpdater> source, string profileScope, float deltaTime) |
| |
| { |
| |
| container.AddRange(source); |
| |
| foreach (IMonoUpdater monoUpdater in container) |
| |
| { |
| |
| monoUpdater.CustomFixedUpdate(deltaTime); |
| |
| } |
| |
| container.Clear(); |
| |
| } |
| |
| |
| |
| public static void CustomUpdate(this List<IMonoUpdater> container, List<IMonoUpdater> source, string profileScope, float deltaTime, float time) |
| |
| { |
| |
| container.AddRange(source); |
| |
| foreach (IMonoUpdater monoUpdater in container) |
| |
| { |
| |
| monoUpdater.CustomUpdate(deltaTime, time); |
| |
| } |
| |
| container.Clear(); |
| |
| } |
| |
| |
| |
| public static void CustomLateUpdate(this List<IMonoUpdater> container, List<IMonoUpdater> source, string profileScope, float deltaTime) |
| |
| { |
| |
| container.AddRange(source); |
| |
| foreach (IMonoUpdater monoUpdater in container) |
| |
| { |
| |
| monoUpdater.CustomLateUpdate(deltaTime); |
| |
| } |
| |
| container.Clear(); |
| |
| } |
| |
| } |
| |
| |