1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-28 23:11:54 +08:00
Files
Dog-Lynx-And-HCN/scripts/Tools/WorldManager.gd
T

18 lines
368 B
GDScript
Raw Normal View History

2025-08-26 11:39:47 +08:00
extends Node2D
class_name WorldManager
2025-08-26 11:39:47 +08:00
static var rootNode: Node2D
static var tree: SceneTree
static var runningTime: int = 0
2025-08-26 11:39:47 +08:00
func _ready():
tree = get_tree()
rootNode = self
func _physics_process(delta):
runningTime += delta * 1000
if EntityBase.mobCount() == 0 and runningTime > 3000:
UIState.setPanel("MakeFeed")
static func getTime():
return runningTime