Round system
This commit is contained in:
parent
bcb42f8d16
commit
3df8247a84
32 changed files with 573 additions and 123 deletions
|
|
@ -3,11 +3,11 @@ extends Node3D
|
|||
@export var item: PackedScene
|
||||
|
||||
func _ready() -> void:
|
||||
deferred_spawn.call_deferred()
|
||||
if multiplayer.is_server():
|
||||
Session.round_started.connect(spawn)
|
||||
|
||||
func deferred_spawn():
|
||||
func spawn():
|
||||
if multiplayer.is_server():
|
||||
var node = item.instantiate()
|
||||
add_sibling(node,true)
|
||||
node.global_position = global_position
|
||||
queue_free()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue