godot-plateformer/_player/states/grap_hook.gd

15 lines
426 B
GDScript

extends LimboHSM
@onready var root: Normal = %Normal
func _setup() -> void:
self.add_transition(root.hook_shooting_state,root.grapping_state,root.hook_shooting_state.EVENT_FINISHED)
func _enter() -> void:
get_root().blackboard.set_var(&"is_hooking",true) ##BB里锁住Dash状态
func _exit() -> void:
get_root().blackboard.set_var(&"is_hooking",false) ##BB里锁住Dash状态
agent.locomotion_comp.enable_movement()