소스 검색

商店次数优化

181404010226 2 달 전
부모
커밋
f5404ec322
2개의 변경된 파일269개의 추가작업 그리고 300개의 파일을 삭제
  1. 265 298
      assets/Scenes/GameLevel.scene
  2. 4 2
      assets/scripts/FourUI/ShopSystem/ShopController.ts

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 265 - 298
assets/Scenes/GameLevel.scene


+ 4 - 2
assets/scripts/FourUI/ShopSystem/ShopController.ts

@@ -263,7 +263,8 @@ export class ShopController extends Component {
                         this.moneyIconNode.active = false;
                     }
                 } else {
-                    this.moneyCountLabel.string = `${totalCount}/${maxCount}`;
+                    const remainingCount = maxCount - totalCount;
+                    this.moneyCountLabel.string = `${remainingCount}/${maxCount}`;
                     // 观看广告时显示图标
                     if (this.moneyIconNode) {
                         this.moneyIconNode.active = true;
@@ -318,7 +319,8 @@ export class ShopController extends Component {
                         this.diamondIconNode.active = false;
                     }
                 } else {
-                    this.diamondCountLabel.string = `${totalCount}/${maxCount}`;
+                    const remainingCount = maxCount - totalCount;
+                    this.diamondCountLabel.string = `${remainingCount}/${maxCount}`;
                     // 观看广告时显示图标
                     if (this.diamondIconNode) {
                         this.diamondIconNode.active = true;

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.