26 lines
392 B
TypeScript
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
|
|
}
|
|
}
|