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