public void Update() { foreach (var component in Starts) { component.Start(); } Starts.Clear(); foreach (var dispose in Disposers) { Updates.Remove(dispose); } Disposers.Clear(); foreach (var component in Updates) { component.Update(); } }
public void Update() { foreach (var component in Starts) { component.Start(); } Starts.Clear(); foreach (var dispose in Disposers) { Updates.Remove(dispose); } Disposers.Clear(); foreach (var component in Updates) { component.Update(); } }