rp_11009/assets/Game/Scripts/FeatureBuyPopup.ts
2026-04-21 13:47:36 +08:00

31 lines
804 B
TypeScript

import { _decorator, Component, Node } from 'cc';
const { ccclass, property } = _decorator;
@ccclass('FeatureBuyPopup')
export class FeatureBuyPopup extends Component {
BuyType: number = 1;
protected onLoad(): void {
this.BuyType = 1;
// 两个Node加入点击事件
// this.buyFreeSpinNode.on(Node.EventType.TOUCH_START, this.onClickBuyFreeSpin, this);
// this.buySuperSpinNode.on(Node.EventType.TOUCH_START, this.onClickBuySuperSpin, this);
}
// show() {
// this.buyFreeSpinBgSprite.active = this.BuyType == 1;
// }
// onClickBuyFreeSpin() {
// if (this.BuyType == 1) return;
// this.BuyType = 1;
// }
// onClickBuySuperSpin() {
// if (this.BuyType == 2) return;
// this.BuyType = 2;
// }
}