onLoad: function() { Connect.connect(); this.onReceiveDataServer(); setInterval(() => { // BuffsSet.removeAll(); // this.createBuff(); // this.createBuff(); }, 5000); this.createBuff(); },
toPlayHandler: function() { Connect.connect(); cc.director.loadScene('Controller'); },