tochie-facade/scenes/Shell.gd

10 lines
225 B
GDScript3
Raw Permalink Normal View History

2023-09-25 07:57:50 +00:00
extends Control
class_name Shell
static func get_shell(node: Node) -> Node:
if node == node.get_tree().root:
assert(false)
if node.name == "Shell":
return node
return get_shell(node.get_parent())