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