This commit is contained in:
Marek Lenczewski
2026-04-04 00:00:15 +02:00
parent 3488856b91
commit f1d34ebf1d
104 changed files with 1912 additions and 1789 deletions

9
scenes/player/ability.gd Normal file
View File

@@ -0,0 +1,9 @@
extends Node
@onready var player: CharacterBody3D = get_parent()
func _unhandled_input(event: InputEvent) -> void:
for i in range(5):
if event.is_action_pressed("ability_%s" % (i + 1)):
EventBus.ability_use.emit(player, i)
return