refactor: behaviour collector Count and indexer accessors added
This commit is contained in:
@@ -46,20 +46,20 @@ public class UpdateManager : UniverseObject
|
||||
toCallFirstFrameUpdates.RemoveAt(i);
|
||||
}
|
||||
|
||||
for (int i = preUpdateEntities.Behaviours.Count - 1; i >= 0; i--)
|
||||
preUpdateEntities.Behaviours[i].PreUpdate();
|
||||
for (int i = preUpdateEntities.Count - 1; i >= 0; i--)
|
||||
preUpdateEntities[i].PreUpdate();
|
||||
}
|
||||
|
||||
private void OnUpdate(IUniverse sender, UniverseTime engineTime)
|
||||
{
|
||||
for (int i = updateEntities.Behaviours.Count - 1; i >= 0; i--)
|
||||
updateEntities.Behaviours[i].Update();
|
||||
for (int i = updateEntities.Count - 1; i >= 0; i--)
|
||||
updateEntities[i].Update();
|
||||
}
|
||||
|
||||
private void OnPostUpdate(IUniverse sender, UniverseTime engineTime)
|
||||
{
|
||||
for (int i = postUpdateEntities.Behaviours.Count - 1; i >= 0; i--)
|
||||
postUpdateEntities.Behaviours[i].PostUpdate();
|
||||
for (int i = postUpdateEntities.Count - 1; i >= 0; i--)
|
||||
postUpdateEntities[i].PostUpdate();
|
||||
}
|
||||
|
||||
private void OnFirstFrameCollected(IBehaviourCollector<IFirstFrameUpdate> sender, IFirstFrameUpdate behaviourCollected)
|
||||
|
||||
Reference in New Issue
Block a user