2025-08-26 11:39:47 +08:00
|
|
|
extends Node2D
|
2025-08-26 17:28:20 +08:00
|
|
|
class_name WorldManager
|
2025-08-26 11:39:47 +08:00
|
|
|
|
|
|
|
|
static var rootNode: Node2D
|
|
|
|
|
static var tree: SceneTree
|
2025-08-29 10:50:22 +08:00
|
|
|
static var runningTime: int = 0
|
2025-08-26 11:39:47 +08:00
|
|
|
|
|
|
|
|
func _ready():
|
2025-08-26 12:21:09 +08:00
|
|
|
tree = get_tree()
|
|
|
|
|
rootNode = self
|
2025-08-29 10:26:41 +08:00
|
|
|
func _physics_process(delta):
|
2025-08-29 10:30:20 +08:00
|
|
|
runningTime += delta * 1000
|
2025-09-12 22:08:55 +08:00
|
|
|
if EntityBase.mobCount() == 0 and runningTime > 3000:
|
2025-08-26 22:31:28 +08:00
|
|
|
UIState.setPanel("MakeFeed")
|
2025-08-29 10:26:41 +08:00
|
|
|
|
|
|
|
|
static func getTime():
|
|
|
|
|
return runningTime
|