mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 15:01:53 +08:00
b186382080
- 新增JsonTool工具类用于解析JSON文件 - 在GameOver面板中添加死亡原因显示标签 - 添加死亡原因JSON数据文件 - 在GameRule中加载死亡原因数据
19 lines
374 B
GDScript
19 lines
374 B
GDScript
extends Node2D
|
|
class_name WorldManager
|
|
|
|
static var rootNode: Node2D
|
|
static var tree: SceneTree
|
|
static var runningTime: int = 0
|
|
|
|
func _ready():
|
|
tree = get_tree()
|
|
rootNode = self
|
|
print(GameRule.deadReasons)
|
|
func _physics_process(delta):
|
|
runningTime += delta * 1000
|
|
if EntityBase.mobCount() == 0:
|
|
UIState.setPanel("MakeFeed")
|
|
|
|
static func getTime():
|
|
return runningTime
|