mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-29 23:41:54 +08:00
506f0b0924
- 新增团子猫饲料资源及配置 - 扩展FieldStore枚举添加节能和能量再生效率 - 改进EntityBase能量存储和使用逻辑 - 添加WorldManager运行时间追踪功能
18 lines
340 B
GDScript
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
|