feat:(recuration): added planet list singelton
This commit is contained in:
@@ -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