feat: More Control Over Displayables
This commit is contained in:
@@ -126,7 +126,7 @@ public class GameManager : IEntity
|
||||
spriteBatch.Begin();
|
||||
|
||||
foreach (var gameObject in GameObjects)
|
||||
if (gameObject.BehaviourController.TryGetBehaviour<Behaviours.IDrawBehaviour>(out var drawable))
|
||||
if (gameObject.BehaviourController.TryGetBehaviour<IDisplayable>(out var drawable))
|
||||
drawable.Draw(spriteBatch);
|
||||
|
||||
spriteBatch.End();
|
||||
|
||||
Reference in New Issue
Block a user