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

2 years ago
extends Node
@onready var status = (%Status as Status)
2 years ago
@onready var combo = (%Combo as Combo)
2 years ago
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):
2 years ago
combo.add_input_action(event.as_text())
2 years ago
func on_input_action_released(event:InputEvent):
pass
func on_input_action_move(input_dir):
2 years ago
status.input_dir = input_dir