14 lines
314 B
GDScript
14 lines
314 B
GDScript
extends Control
|
|
|
|
var _container: GridContainer
|
|
|
|
# Called when the node enters the scene tree for the first time.
|
|
func _ready():
|
|
_container = get_node("GridContainer");
|
|
pass # Replace with function body.
|
|
|
|
|
|
func add_Item ():
|
|
#TODO: global member for inventory?
|
|
Node item = new Node();
|
|
_container.add_child(item) |