fix: update manager not calling first frame methods once
This commit is contained in:
parent
832514ba7d
commit
6b9020bd24
@ -41,7 +41,10 @@ public class UpdateManager : UniverseObject
|
||||
private void OnPreUpdate(IUniverse sender, UniverseTime engineTime)
|
||||
{
|
||||
for (int i = toCallFirstFrameUpdates.Count - 1; i >= 0; i--)
|
||||
{
|
||||
toCallFirstFrameUpdates[i].FirstActiveFrame();
|
||||
toCallFirstFrameUpdates.RemoveAt(i);
|
||||
}
|
||||
|
||||
for (int i = preUpdateEntities.Behaviours.Count - 1; i >= 0; i--)
|
||||
preUpdateEntities.Behaviours[i].PreUpdate();
|
||||
|
Loading…
x
Reference in New Issue
Block a user