mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-06-13 07:07:12 +08:00
feat: 添加团子猫饲料和能量系统改进
- 新增团子猫饲料资源及配置 - 扩展FieldStore枚举添加节能和能量再生效率 - 改进EntityBase能量存储和使用逻辑 - 添加WorldManager运行时间追踪功能
This commit is contained in:
@@ -3,10 +3,15 @@ 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):
|
||||
func _physics_process(delta):
|
||||
runningTime += delta
|
||||
if EntityBase.mobCount() == 0:
|
||||
UIState.setPanel("MakeFeed")
|
||||
|
||||
static func getTime():
|
||||
return runningTime
|
||||
|
||||
Reference in New Issue
Block a user