tang biao 5 anni fa
parent
commit
4941563fea
2 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 1 1
      assets/scripts/game/Game.js
  2. 1 1
      assets/scripts/utils/AlertManager.js

+ 1 - 1
assets/scripts/game/Game.js

@@ -124,7 +124,7 @@ cc.Class({
         if (GameGlobal.messageNotice !== undefined && GameGlobal.messageNotice.length > 0) {
             AlertManager.showNoticeAlert(GameGlobal.messageNotice);
             if (GameGlobal.noticeDiamond !== undefined && GameGlobal.noticeDiamond > 0) {
-                let showText = `钻石 x ${Global.noticeDiamond}`;
+                let showText = `钻石 x ${GameGlobal.noticeDiamond}`;
                 AlertManager.showActGiftAlert('diamond', showText);
             }
         }

+ 1 - 1
assets/scripts/utils/AlertManager.js

@@ -116,7 +116,7 @@ class AlertManager {
     /// 显示明星界面
     static showStarAlert() {
         GameModule.audioMng.playClickButton();
-        if (GameGlobal.starContent === undefined || Global.GameGlobal === null) {
+        if (GameGlobal.starContent === undefined || GameGlobal.starContent === null) {
             PrefabManager.loadPrefab('star_content')
                 .then((result) => {
                     let alert = result;