29 lines
814 B
TypeScript
29 lines
814 B
TypeScript
import { _decorator, Component, Node, Label } from 'cc';
|
|
const { ccclass, property } = _decorator;
|
|
import {WithdrawalData} from './Withdrawal/WithdrawalData'
|
|
// import {rechargeNum} from './RechageNum'
|
|
|
|
@ccclass('tanchuan')
|
|
export class tanchuan extends Component {
|
|
@property(WithdrawalData)
|
|
WithdrawalData:WithdrawalData = null;
|
|
// @property(rechargeNum)
|
|
// RechargeNum:rechargeNum = null;
|
|
init(news){
|
|
this.node.getChildByName('news').getComponent(Label).string = news
|
|
}
|
|
start() {
|
|
// if(this.WithdrawalData.node.active = true){
|
|
// this.WithdrawalData.node.active = false
|
|
// }
|
|
// if(this.RechargeNum.node.active = true){
|
|
// this.RechargeNum.node.active = false
|
|
// }
|
|
}
|
|
|
|
update(deltaTime: number) {
|
|
|
|
}
|
|
}
|
|
|