Browse Source

修改global

tang biao 5 years ago
parent
commit
4941563fea
2 changed files with 2 additions and 2 deletions
  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) {
         if (GameGlobal.messageNotice !== undefined && GameGlobal.messageNotice.length > 0) {
             AlertManager.showNoticeAlert(GameGlobal.messageNotice);
             AlertManager.showNoticeAlert(GameGlobal.messageNotice);
             if (GameGlobal.noticeDiamond !== undefined && GameGlobal.noticeDiamond > 0) {
             if (GameGlobal.noticeDiamond !== undefined && GameGlobal.noticeDiamond > 0) {
-                let showText = `钻石 x ${Global.noticeDiamond}`;
+                let showText = `钻石 x ${GameGlobal.noticeDiamond}`;
                 AlertManager.showActGiftAlert('diamond', showText);
                 AlertManager.showActGiftAlert('diamond', showText);
             }
             }
         }
         }

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

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