feat:(recuration): added planet list singelton
This commit is contained in:
1 parent
01a7fe419a
commit
503b12d8eb
2 files changed
+12
No files matched your search
@@ -0,0 +1,11 @@
|
||||
extends Node
|
||||
|
||||
var planets: Array[Node] = []
|
||||
|
||||
|
||||
func register(planet: Node) -> void:
|
||||
planets.append(planet)
|
||||
|
||||
|
||||
func unregister(planet) -> void:
|
||||
planets.erase(planet)
|
||||
@@ -0,0 +1 @@
|
||||
uid://dhdnbucgojrv6
|
||||
Reference in new issue
Block a user