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.
|
@tool
|
|
extends Action
|
|
class_name ActionDestroy
|
|
|
|
var live_time: float = 0.05
|
|
|
|
|
|
func run(character: Character) -> BT.Status:
|
|
live_time -= get_physics_process_delta_time()
|
|
if live_time > 0:
|
|
return RUNNING
|
|
else:
|
|
Global.character_mgr.destroy_character(character.id())
|
|
return SUCCESS
|
|
|