tochie-facade/scenes/Shell.gd
2023-09-25 12:57:50 +05:00

10 lines
225 B
GDScript

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())