import GameM, { AUDIO_TYPE, VIDEO_TYPE } from "../manager/GameM"; import BasePanel from "../uiFrames/BasePanel"; const { ccclass, property } = cc._decorator; @ccclass export default class CashProPanel extends BasePanel { @property(cc.Label) txtNum: cc.Label = null; //@property(cc.Node) //panelNode: cc.Node = null; OnEnter(price: number) { this.txtNum.string = "¥" + price; //this.panelNode.scale = 0; this.node.active = true; //cc.tween(this.panelNode).to(0.2, { scale: 1 }, { easing: "backOut" }) // .call(() => { // // }) // .start(); } OnExit() { this.node.active = false; } Click_BackBtn() { this.OnExit(); GameM.audioM.playEffect(AUDIO_TYPE.button); } }