FuncIt/Game/source/assets/scripts/server_handlers/global.gd
2021-11-02 17:06:49 +02:00

16 lines
434 B
GDScript

extends Node
var player_master = null
var ui = null
var alive_players = []
func instance_node_at_location(node: Object, parent: Object, location: Vector2) -> Object:
var node_instance = instance_node(node, parent)
node_instance.global_position = location
return node_instance
func instance_node(node: Object, parent: Object) -> Object:
var node_instance = node.instance()
parent.add_child(node_instance)
return node_instance