xx há 1 ano atrás
pai
commit
ef42b87d7d

Diff do ficheiro suprimidas por serem muito extensas
+ 311 - 134
assets/resources/prefab/run/game_run.prefab


+ 1 - 0
assets/script/config.ts

@@ -289,6 +289,7 @@ export class config {
     }
 
     static TOKEN:string = ""
+    static USER_DATA:string = "userData"
 }
 
 

+ 2 - 2
assets/script/run/gameManager.ts

@@ -111,7 +111,7 @@ export class gameManager extends Component {
     }
 
     public static getUserData():UserData{
-        let str = sys.localStorage.getItem('userData')
+        let str = sys.localStorage.getItem(config.USER_DATA)
         if(str==undefined||str==""||str==null){
             return null;
         }
@@ -130,7 +130,7 @@ export class gameManager extends Component {
 
     public static saveUserData(){
         if(gameManager.g_userData!=null){
-            sys.localStorage.setItem('userData', JSON.stringify(gameManager.g_userData));
+            sys.localStorage.setItem(config.USER_DATA, JSON.stringify(gameManager.g_userData));
         }
     }
 

+ 2 - 3
assets/script/run/game_list_view/game_list.ts

@@ -113,17 +113,16 @@ export class game_list extends Component {
             return
         }
         this.updatePage(page)
-        console.log("onUpPage")
+        // console.log("onUpPage")
     }
 
     onNextPage(){
         let page = gameManager.getStaticUserData().select_page + 1;
-        console.log("onNextPage",page,this.getAllPage())
         if(page>this.getAllPage()){
             return
         }
         this.updatePage(page)
-        console.log("onNextPage")
+        // console.log("onNextPage")
     }
 
     onItemClick(item:level_list_item){

Alguns ficheiros não foram mostrados porque muitos ficheiros mudaram neste diff