panhui 2 years ago
parent
commit
30f74af086
2 changed files with 249 additions and 2332 deletions
  1. 248 2331
      assets/scence/game.scene
  2. 1 1
      assets/scripts/rankCtr.ts

File diff suppressed because it is too large
+ 248 - 2331
assets/scence/game.scene


+ 1 - 1
assets/scripts/rankCtr.ts

@@ -54,7 +54,6 @@ export class rankCtr extends Component {
 
     updateRank(data: any[]) {
         if (this.rankNodes.length === 0) {
-            this.content.removeAllChildren()
             this.rankList = data
             data.forEach((item, index) => {
                 let node = instantiate(this.gameItem)
@@ -120,6 +119,7 @@ export class rankCtr extends Component {
             .call(() => {
                 this.rankNodes = []
                 this.startAnimate = false
+                this.content.removeAllChildren()
                 this.updateRank(data)
             })
             .start()

Some files were not shown because too many files changed in this diff