From 7f1c1d83376df9039628de19269b493d9a719d0f Mon Sep 17 00:00:00 2001 From: Maddy Thorson Date: Sat, 6 Feb 2021 23:41:43 -0800 Subject: [PATCH] IEarlyUpdate --- src/Components/Interfaces/IEarlyUpdate.bf | 7 +++++++ src/Core/Scene.bf | 1 + 2 files changed, 8 insertions(+) create mode 100644 src/Components/Interfaces/IEarlyUpdate.bf 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();