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.
16 lines
347 B
GDScript
16 lines
347 B
GDScript
|
2 years ago
|
extends Node3D
|
||
|
|
class_name PlayerAction
|
||
|
|
|
||
|
|
@onready var character = (get_owner() as Character)
|
||
|
|
@onready var status = (%Status as Status)
|
||
|
|
|
||
|
|
func lock(is_lock:bool):
|
||
|
|
var has_target = status.target != 0
|
||
|
|
if is_lock:
|
||
|
|
var enemy_list = Global.character_mgr.get_enemy_list(character.id())
|
||
|
|
if enemy_list:
|
||
|
|
pass
|
||
|
|
else:
|
||
|
|
status.set_status("target",0)
|
||
|
|
|