diff --git a/Game/Behaviours/RotatableBehaviour.cs b/Game/Behaviours/RotatableBehaviour.cs index 15f3201..09185c4 100644 --- a/Game/Behaviours/RotatableBehaviour.cs +++ b/Game/Behaviours/RotatableBehaviour.cs @@ -1,7 +1,3 @@ -using Microsoft.Xna.Framework; - -using Apos.Shapes; - using Syntriax.Engine.Core; namespace Pong.Behaviours; @@ -12,8 +8,8 @@ public class RotatableBehaviour : BehaviourOverride protected override void OnFirstActiveFrame() { - if (BehaviourController.TryGetBehaviour(out inputs)) - inputs.BehaviourController.AddBehaviour(); + if (!BehaviourController.TryGetBehaviour(out inputs)) + inputs = BehaviourController.AddBehaviour(); } protected override void OnUpdate()