2 Commits 0a72c98160 ... 0eb2b3371f

Author SHA1 Message Date
  tang biao 0eb2b3371f Merge branch 'dev' of http://svn.ouj.com:3000/DWG/taptapstar into dev 5 years ago
  tang biao 4941563fea 修改global 5 years ago
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

@@ -129,7 +129,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;