IEarlyUpdate

This commit is contained in:
Maddy Thorson 2021-02-06 23:41:43 -08:00
parent 1fb4ed7c9b
commit 7f1c1d8337
2 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,7 @@
namespace Strawberry
{
public interface IEarlyUpdate
{
public void EarlyUpdate();
}
}

View File

@ -38,6 +38,7 @@ namespace Strawberry
public virtual void Update() public virtual void Update()
{ {
ForEach<IEarlyUpdate>(scope (u) => u.EarlyUpdate());
ForEach<IUpdate>(scope (u) => u.Update()); ForEach<IUpdate>(scope (u) => u.Update());
ForEach<ILateUpdate>(scope (u) => u.LateUpdate()); ForEach<ILateUpdate>(scope (u) => u.LateUpdate());
UpdateLists(); UpdateLists();