blob: 849df0921ee74fdad7e19395a695d2ef64671e86 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
extends Node
var add_node = do_add_node() # Hack to have one node on init and not fail at runtime.
var shorthand = $Node
var with_self = self.get_node(^"Node")
var without_self = get_node(^"Node")
var with_cast = get_node(^"Node") as Node
var shorthand_with_cast = $Node as Node
func test():
print("warn")
func do_add_node():
var node = Node.new()
node.name = "Node"
add_child(node)
|