diff --git a/Game/Behaviours/CircleBehaviour.cs b/Game/Behaviours/CircleBehaviour.cs index 783dccb..0593d1a 100644 --- a/Game/Behaviours/CircleBehaviour.cs +++ b/Game/Behaviours/CircleBehaviour.cs @@ -2,6 +2,7 @@ using Microsoft.Xna.Framework; using Apos.Shapes; +using Syntriax.Engine.Core.Abstract; using Syntriax.Engine.Physics2D.Primitives; namespace Pong.Behaviours; diff --git a/Game/Behaviours/ShapeAABBBehaviour.cs b/Game/Behaviours/ShapeAABBBehaviour.cs index 635ef75..397861e 100644 --- a/Game/Behaviours/ShapeAABBBehaviour.cs +++ b/Game/Behaviours/ShapeAABBBehaviour.cs @@ -3,6 +3,7 @@ using Microsoft.Xna.Framework; using Apos.Shapes; using Syntriax.Engine.Core; +using Syntriax.Engine.Core.Abstract; using Syntriax.Engine.Input; using Syntriax.Engine.Physics2D.Abstract; using Syntriax.Engine.Physics2D.Primitives; diff --git a/Game/Behaviours/ShapeBehaviour.cs b/Game/Behaviours/ShapeBehaviour.cs index 94fa862..5628134 100644 --- a/Game/Behaviours/ShapeBehaviour.cs +++ b/Game/Behaviours/ShapeBehaviour.cs @@ -2,6 +2,7 @@ using Microsoft.Xna.Framework; using Apos.Shapes; +using Syntriax.Engine.Core.Abstract; using Syntriax.Engine.Physics2D.Primitives; namespace Pong.Behaviours; diff --git a/Game/GamePong.cs b/Game/GamePong.cs index 2e8cf71..f7e1fc9 100644 --- a/Game/GamePong.cs +++ b/Game/GamePong.cs @@ -111,13 +111,13 @@ public class GamePong : Game IGameObject gameObjectWallRight = gameManager.InstantiateGameObject().SetGameObject("Wall Right"); gameObjectWallRight.Transform.SetTransform(position: new Vector2D(532f, 0f), scale: new Vector2D(20f, 328f)); - gameObjectWallRight.BehaviourController.AddBehaviour((Action)pongManager.ScoreToLeft); + gameObjectWallRight.BehaviourController.AddBehaviour((Action)pongManager.ScoreToLeft); gameObjectWallRight.BehaviourController.AddBehaviour(Shape.Box); gameObjectWallRight.BehaviourController.AddBehaviour().IsStatic = true; IGameObject gameObjectWallLeft = gameManager.InstantiateGameObject().SetGameObject("Wall Left"); gameObjectWallLeft.Transform.SetTransform(position: new Vector2D(-532f, 0f), scale: new Vector2D(20f, 328f)); - gameObjectWallLeft.BehaviourController.AddBehaviour((Action)pongManager.ScoreToRight); + gameObjectWallLeft.BehaviourController.AddBehaviour((Action)pongManager.ScoreToRight); gameObjectWallLeft.BehaviourController.AddBehaviour(Shape.Box); gameObjectWallLeft.BehaviourController.AddBehaviour().IsStatic = true;