fix: Fixed DrawableBehaviours on GO Inactive

This commit is contained in:
Syntriax 2023-11-24 11:42:30 +03:00
parent cf2d85765d
commit 4228d317e2
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ public class DrawableSpriteBehaviour : Behaviour, IDrawBehaviour, IAssignableSpr
public void Draw(SpriteBatch spriteBatch)
{
if (!StateEnable.Enabled)
if (!BehaviourController.GameObject.StateEnable.Enabled || !StateEnable.Enabled)
return;
Vector2 position = BehaviourController.GameObject.Transform.Position;