34 lines
621 B
JavaScript
Raw Permalink Normal View History

2025-04-24 17:03:28 +08:00
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);
},
});