diff options
| author | alex <[email protected]> | 2026-07-25 17:14:11 +0200 |
|---|---|---|
| committer | alex <[email protected]> | 2026-07-25 17:14:11 +0200 |
| commit | a6e7c49a162ada8ec0883fccb1da7313b03ba2ec (patch) | |
| tree | 2e374c703ea3591e9f7053477bb1135fe608f58f /Player.cs | |
| parent | 023c4f003d58c27cd2677307abe2c65bb09c2681 (diff) | |
| download | godot-testing-main.tar.xz godot-testing-main.zip | |
Diffstat (limited to 'Player.cs')
| -rw-r--r-- | Player.cs | 12 |
1 files changed, 0 insertions, 12 deletions
@@ -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>("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! |
