feat(SS) 添加信息栏场景

This commit is contained in:
chicrobot committed 2026-03-10 00:00:02 +08:00
1 parent 0bba26618f
commit 04f41adf27
4 files changed
+886 -4

No files matched your search

+6 -2
View File
@@ -46,8 +46,6 @@ export default class Control extends BreatheLife {
// 初始化团队目标点
this.teamTargetPoint = null // 团队目标移动点
}
// Control 场景不再需要覆盖 initSceneTransition 方法
// 数组初始化由父类 BreatheLife.create() 中的 initSceneTransition() 完成
initInput() {
// 移除父类的输入事件监听器,避免重复监听
super.removeListener()
@@ -68,6 +66,12 @@ export default class Control extends BreatheLife {
update() {
super.update()
// 检查小草是否被收集完
if (this.smallGrassObjects.length === 0) {
console.log("所有小草已被收集")
// 切换到下一个场景
this.scene.start(this.nextScene)
}
// 更新所有NPC
this.NPCObjects.forEach(npc => {
if (npc.update) {