From a6e7c49a162ada8ec0883fccb1da7313b03ba2ec Mon Sep 17 00:00:00 2001 From: alex Date: Sat, 25 Jul 2026 17:14:11 +0200 Subject: weapons are swappable now --- Player.cs | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'Player.cs') diff --git a/Player.cs b/Player.cs index 68d7ebc..8b6c7ff 100644 --- a/Player.cs +++ b/Player.cs @@ -33,18 +33,6 @@ public partial class Player : CharacterBody2D, IDamageable _sprite.FlipH = mousePos.X < GlobalPosition.X; } - public override void _UnhandledInput(InputEvent @event) - { - if (@event.IsActionPressed("shoot")) - { - // Find the weapon node and tell it to fire at the mouse - var weapon = GetNodeOrNull("Weapon"); - if (weapon != null) - { - weapon.Fire(GetGlobalMousePosition()); - } - } - } public void TakeDamage(float amount) { // For right now, just subtract it from the runtime stats we set up earlier! -- cgit v1.2.3