1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-29 23:41:54 +08:00
Files
Dog-Lynx-And-HCN/scripts/Tools/WorldManager.gd
T
fallingshrimp 506f0b0924 feat: 添加团子猫饲料和能量系统改进
- 新增团子猫饲料资源及配置
- 扩展FieldStore枚举添加节能和能量再生效率
- 改进EntityBase能量存储和使用逻辑
- 添加WorldManager运行时间追踪功能
2025-08-29 10:26:41 +08:00

18 lines
340 B
GDScript

extends Node2D
class_name WorldManager
static var rootNode: Node2D
static var tree: SceneTree
static var runningTime: float = 0
func _ready():
tree = get_tree()
rootNode = self
func _physics_process(delta):
runningTime += delta
if EntityBase.mobCount() == 0:
UIState.setPanel("MakeFeed")
static func getTime():
return runningTime