10 lines
225 B
GDScript
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())
|