34 lines
621 B
JavaScript
34 lines
621 B
JavaScript
import GameModel from "../../../ts/core/GameModel";
|
|
|
|
cc.Class({
|
|
extends: cc.Component,
|
|
|
|
properties: {
|
|
tipsLab: cc.Label,
|
|
|
|
tips: {
|
|
get(){
|
|
return this.tipsLab ? this.tipsLab.string : '';
|
|
},
|
|
set(n){
|
|
this.tipsLab && (this.tipsLab.string = n);
|
|
}
|
|
}
|
|
},
|
|
|
|
ctor(){
|
|
this.clicked = false;
|
|
},
|
|
|
|
start () {
|
|
},
|
|
|
|
sendGetInfo(){
|
|
this.clicked = true;
|
|
GameModel.send('c2s_shuilu_info');
|
|
setTimeout(() => {
|
|
this.clicked = false;
|
|
}, 2 * 1000);
|
|
},
|
|
});
|