feat(SS) 故事场景控制场景备份

This commit is contained in:
chicrobot committed 2026-02-11 21:16:48 +08:00
1 parent 062d950583
commit 5644f9c1eb
13 files changed
+108 -1072

No files matched your search

+7
View File
@@ -98,6 +98,13 @@ export default class WorldTime extends Phaser.Scene {
fontFamily: 'Arial'
}
).setScrollFactor(0).setDepth(this.UIDepth) // 固定文本,不随相机移动,UI层级
// 当场景是WorldTime时,突出,显示在中心
if (this.scene.key === 'WorldTime') {
this.timeText.setPosition(
this.cameras.main.width/2,
this.cameras.main.height/2
).setOrigin(0.5, 0.5)
}
// 添加黑夜遮罩
this.nightMask = this.add.rectangle(
0, 0,