2022-06-19 22:32:52 +08:00

26 lines
392 B
TypeScript

import JCWallet from "../JCWallet";
const {ccclass, property} = cc._decorator;
@ccclass
export default class WalletBase extends cc.Component {
protected wallet: JCWallet
isAlter = false
onLoad(): void {
this.wallet = new JCWallet()
}
start () {
}
update (dt) {
if (this.isAlter) {
this.updateUI()
}
}
updateUI() {
this.isAlter = false
}
}