mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 15:01:53 +08:00
e688f7f0c1
refactor(DirTool): 添加获取无扩展名文件名的方法 feat(WorldManager): 初始化ComponentManager 新增多个子弹资源文件并移动至统一目录 包括ForeverRainbow、ArrowSeven、SunDance、HeavyCrystal和LightGun
19 lines
393 B
GDScript
19 lines
393 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
|
|
ComponentManager.init()
|
|
func _physics_process(delta):
|
|
runningTime += delta * 1000
|
|
if EntityBase.mobCount() == 0 and runningTime > 3000:
|
|
UIState.setPanel("MakeFeed")
|
|
|
|
static func getTime():
|
|
return runningTime
|