using Godot; using System; public partial class Game : Node { private Player player; public DungeonLevel Map { get; private set; } private InputHandler inputHandler; public override void _Ready() { base._Ready(); Map = GetNode("Map"); inputHandler = GetNode("InputHandler"); player = Map.player; } public override void _PhysicsProcess(double delta) { base._PhysicsProcess(delta); Action action = inputHandler.GetAction(); action?.Perform(this, player); } }