fix: Fixed DrawableBehaviours on GO Inactive
This commit is contained in:
parent
cf2d85765d
commit
4228d317e2
|
@ -19,7 +19,7 @@ public class DrawableSpriteBehaviour : Behaviour, IDrawBehaviour, IAssignableSpr
|
||||||
|
|
||||||
public void Draw(SpriteBatch spriteBatch)
|
public void Draw(SpriteBatch spriteBatch)
|
||||||
{
|
{
|
||||||
if (!StateEnable.Enabled)
|
if (!BehaviourController.GameObject.StateEnable.Enabled || !StateEnable.Enabled)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
Vector2 position = BehaviourController.GameObject.Transform.Position;
|
Vector2 position = BehaviourController.GameObject.Transform.Position;
|
||||||
|
|
Loading…
Reference in New Issue