feat: More Control Over Displayables

This commit is contained in:
2023-11-27 10:37:39 +03:00
parent cd75c14d83
commit 12bbfdceaf
12 changed files with 676 additions and 86 deletions

View File

@@ -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();