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
400 B
GDScript
21 lines
400 B
GDScript
extends AnimationPlayer
|
|
class_name Skill
|
|
|
|
@onready var view = (%View as View)
|
|
@onready var status = (%Status as Status)
|
|
|
|
func _ready():
|
|
pass
|
|
|
|
func _process(delta):
|
|
pass
|
|
|
|
func cast_skill(cfg:SkillCfg,cast_dir:Vector2):
|
|
status.is_free_control = false
|
|
play("animation_library/%s"%Util.get_resource_name(cfg))
|
|
|
|
func _on_animation_finished(_anim_name):
|
|
view.reset()
|
|
status.is_free_control = true
|
|
|