You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
535 B
GDScript
19 lines
535 B
GDScript
extends Node
|
|
|
|
@onready var status = (%Status as Status)
|
|
@onready var combo = (%Combo as Combo)
|
|
|
|
func _ready():
|
|
SignalManager.connect("input_action_pressed",on_input_action_pressed)
|
|
SignalManager.connect("input_action_pressed",on_input_action_released)
|
|
SignalManager.connect("input_action_move",on_input_action_move)
|
|
|
|
func on_input_action_pressed(event:InputEvent):
|
|
combo.add_input_action(event.as_text())
|
|
|
|
func on_input_action_released(event:InputEvent):
|
|
pass
|
|
|
|
func on_input_action_move(input_dir):
|
|
status.input_dir = input_dir
|