Round system
This commit is contained in:
parent
bcb42f8d16
commit
3df8247a84
32 changed files with 573 additions and 123 deletions
16
scripts/object_container.gd
Normal file
16
scripts/object_container.gd
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
extends Node
|
||||
|
||||
class_name ObjectContainer
|
||||
|
||||
@export var exlusion_list: Array[Node]
|
||||
|
||||
func _ready() -> void:
|
||||
if not multiplayer.is_server(): return
|
||||
Session.object_containers.append(self)
|
||||
|
||||
func despawn():
|
||||
if not multiplayer.is_server(): return
|
||||
for child in get_children():
|
||||
if exlusion_list.has(child):
|
||||
continue
|
||||
child.queue_free()
|
||||
Loading…
Add table
Add a link
Reference in a new issue