diff options
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! |
