// import Global from "../../Script/Global"; import Global from "./Global"; const {ccclass, property} = cc._decorator; @ccclass export default class Rank extends cc.Component { // LIFE-CYCLE CALLBACKS: Ani = null; Anistate = null; onLoad () { let RemoteS = Global.instance.GetS(); let phb = this.node.getChildByName("phb").children; let phbRank; let phbName; let phbFloor; let j=0; let i=RemoteS.length-1 // let len; let x=0; let f=false; if(RemoteS.length>=8){ x = RemoteS.length - 8; } for(;j=0&&j