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