瀏覽代碼

update click buy

zy_1995 6 月之前
父節點
當前提交
f0fb840203
共有 1 個文件被更改,包括 5 次插入6 次删除
  1. 5 6
      assets/Module/Store/Script/Store.ts

+ 5 - 6
assets/Module/Store/Script/Store.ts

@@ -147,10 +147,10 @@ export default class Store extends cc.Component {
         if (!this.storeData) {
             return;
         }
-        if (this.paying) {
-            return;
-        }
-        this.paying = true;
+        // if (this.paying) {
+        //     return;
+        // }
+        // this.paying = true;
         let goodInfo = this.storeData[index];
         let sendData = {
             userId: this.selfUserID,
@@ -171,7 +171,6 @@ export default class Store extends cc.Component {
                 itemID: goodInfo.buyId
             }));
         });
-        
     }
 
     onclickClose() {
@@ -183,7 +182,7 @@ export default class Store extends cc.Component {
     }
 
     private buyGoodReturn() {
-        this.paying = false;
+        // this.paying = false;
         this.updateCoin();
         this.showBoughtCoin(this.buyIndex);
         this.buyIndex = 0;