| 123456789101112131415161718192021222324 |
- import BasePanel from "../uiFrames/BasePanel";
- const { ccclass, property } = cc._decorator;
- @ccclass
- export default class TestPanel extends BasePanel {
- //现金夺宝页
- @property(cc.Node)
- panelNode: cc.Node = null;
- isInit: boolean = false;
- OnEnter() {
- this.panelNode.scale = 0;
- this.node.active = true;
- cc.tween(this.panelNode).to(0.2, { scale: 1 }, { easing: "backOut" }).start();
- }
- OnExit() {
- this.node.active = false;
- }
- }
|