refactor: behaviour collector Count and indexer accessors added
This commit is contained in:
@@ -11,20 +11,20 @@ public class DrawManager : UniverseObject
|
||||
|
||||
private void OnPreDraw(IUniverse sender)
|
||||
{
|
||||
for (int i = preDrawEntities.Behaviours.Count - 1; i >= 0; i--)
|
||||
preDrawEntities.Behaviours[i].PreDraw();
|
||||
for (int i = preDrawEntities.Count - 1; i >= 0; i--)
|
||||
preDrawEntities[i].PreDraw();
|
||||
}
|
||||
|
||||
private void OnDraw(IUniverse sender)
|
||||
{
|
||||
for (int i = drawEntities.Behaviours.Count - 1; i >= 0; i--)
|
||||
drawEntities.Behaviours[i].Draw();
|
||||
for (int i = drawEntities.Count - 1; i >= 0; i--)
|
||||
drawEntities[i].Draw();
|
||||
}
|
||||
|
||||
private void OnPostDraw(IUniverse sender)
|
||||
{
|
||||
for (int i = postDrawEntities.Behaviours.Count - 1; i >= 0; i--)
|
||||
postDrawEntities.Behaviours[i].PostDraw();
|
||||
for (int i = postDrawEntities.Count - 1; i >= 0; i--)
|
||||
postDrawEntities[i].PostDraw();
|
||||
}
|
||||
|
||||
protected override void OnEnteringUniverse(IUniverse universe)
|
||||
|
||||
Reference in New Issue
Block a user