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