浏览代码

【修改】 第四册 第十六集 游戏4 游戏提示修改;

youhaitao 2 年之前
父节点
当前提交
e8f8da94dd

+ 7 - 1
assets/game/b04_u16/b04_u16_g04/src/Game_b04_u16_g04.ts

@@ -130,6 +130,7 @@ export default class Game_b04_u16_g04 extends GameBase {
             Tools.playAnimation(skeHero, dataHero.idle, true);
         }
         // 引导
+        this.nodeEnemy.opacity = 0;
         let dataEnemy = this.dataQues.dataEnemy;
         let skeEnemy = this.nodeEnemy.getChildByName('spine').getComponent(sp.Skeleton);
         if (skeEnemy.animation != dataEnemy.idle) {
@@ -162,6 +163,12 @@ export default class Game_b04_u16_g04 extends GameBase {
         let dataHero = this.dataQues.dataHero;
         let skeHero = this.nodeHero.getChildByName('spine').getComponent(sp.Skeleton);
         Tools.playAniArray(skeHero, [dataHero.task_0, dataHero.task_1, dataHero.task_2, dataHero.task_3, dataHero.task_3, dataHero.idle]);
+        // 提示
+        let timeOpa = 0.4;
+        let timeClip0 = this.arrAudioTask[0].duration;
+        this.nodeEnemy.active = true;
+        this.nodeEnemy.opacity = 0;
+        cc.tween(this.nodeEnemy).delay(timeClip0 - timeOpa).to(timeOpa, { opacity: 255 }).start();
         // 播放音频
         let dataEnemy = this.dataQues.dataEnemy;
         let skeEnemy = this.nodeEnemy.getChildByName('spine').getComponent(sp.Skeleton);
@@ -176,7 +183,6 @@ export default class Game_b04_u16_g04 extends GameBase {
         await Tools.playEffect(this.arrAudioTask[2]);
         await Tools.playEffect(this.arrAudioTask[3]);
         // 提示
-        let timeOpa = 0.4;
         let timeMove = 1.25;
         cc.tween(this.node).call(() => {
             this.nodeEnemy.active = true;

+ 3 - 0
assets/res/pageMap/res/prefab/pageMap.prefab

@@ -5098,6 +5098,9 @@
       },
       {
         "__id__": 110
+      },
+      {
+        "__id__": 120
       }
     ],
     "_id": ""

+ 1 - 0
assets/res/pageMap/src/PageMap.ts

@@ -49,6 +49,7 @@ export default class PageMap extends cc.Component {
         }
 
         let unitCur = unitId + 1;
+        console.log('unitCur: ', unitCur, '; attributeMap', common.attributeMap[unitCur]);
         if (common.attributeMap[unitCur]) {
             NotifierCenter.trigger(CConst.EVENT_ENTER_UNIT, unitCur);
             return;

+ 1 - 1
settings/project.json

@@ -2,7 +2,7 @@
   "migrate-history": [
     "cloud-function"
   ],
-  "last-module-event-record-time": 1676613702828,
+  "last-module-event-record-time": 1677650114975,
   "group-list": [
     "default"
   ],