fix: Fixed DrawableBehaviours on GO Inactive
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user