diff --git a/src/Components/Interfaces/IEarlyUpdate.bf b/src/Components/Interfaces/IEarlyUpdate.bf new file mode 100644 index 0000000..8954f03 --- /dev/null +++ b/src/Components/Interfaces/IEarlyUpdate.bf @@ -0,0 +1,7 @@ +namespace Strawberry +{ + public interface IEarlyUpdate + { + public void EarlyUpdate(); + } +} diff --git a/src/Core/Scene.bf b/src/Core/Scene.bf index bcf7458..d1c60b3 100644 --- a/src/Core/Scene.bf +++ b/src/Core/Scene.bf @@ -38,6 +38,7 @@ namespace Strawberry public virtual void Update() { + ForEach(scope (u) => u.EarlyUpdate()); ForEach(scope (u) => u.Update()); ForEach(scope (u) => u.LateUpdate()); UpdateLists();