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.
		
		
		
		
		
			
		
			
				
	
	
		
			21 lines
		
	
	
		
			627 B
		
	
	
	
		
			GDScript
		
	
			
		
		
	
	
			21 lines
		
	
	
		
			627 B
		
	
	
	
		
			GDScript
		
	
| extends Node
 | |
| 
 | |
| @export var test_skill_cfg:SkillCfg
 | |
| @onready var status = (%Status as Status)
 | |
| @onready var skill = (%Skill as Skill)
 | |
| 
 | |
| 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):
 | |
| 	if event.is_action("attack_light"):
 | |
| 		skill.cast_skill(test_skill_cfg,Vector2(1,1))
 | |
| 	
 | |
| func on_input_action_released(event:InputEvent):
 | |
| 	pass
 | |
| 
 | |
| func on_input_action_move(input_dir):
 | |
| 	(%Status as Status).move_dir = input_dir
 |