diff --git a/Testing/MyScene.cs b/Testing/MyScene.cs index 5bee1ad..319dc50 100644 --- a/Testing/MyScene.cs +++ b/Testing/MyScene.cs @@ -14,19 +14,14 @@ public MyScene() var e = new Entity(); e.AddComponent(new TransformComponent(new Vec2(100))); e.AddComponent(new RectComponent(Color.Black, new Vec2(50))); - e.AddComponent(new ControlComponent()); + e.AddComponent(new ControlComponent(speed: 200, useGamePad: true, gamePadIndex: 0)); e.AddComponent(new CollisionComponent(new Vec2(50))); AddEntity(e); var e2 = new Entity(); e2.AddComponent(new TransformComponent(new Vec2(300))); e2.AddComponent(new RectComponent(Color.Red, new Vec2(50))); - e2.AddComponent(new CollisionComponent(new Vec2(50), Vec2.Zero, false, CollisionCallback)); + e2.AddComponent(new CollisionComponent(new Vec2(50))); AddEntity(e2); } - - private void CollisionCallback(Entity from, Entity other) - { - DebugManager.Log(LogLevel.LogInfo, $"Collision !"); - } } \ No newline at end of file