import { _decorator, Component, Node } from 'cc'; import { GameMng } from '../GameMng'; import { UIButton } from '../gcommon/UIButton'; import { UIManager } from '../gcommon/UIManager'; const { ccclass, property } = _decorator; @ccclass('faxian_view') export class faxian_view extends Component { @property(Node) btn_shop: Node = null; @property(Node) btn_bag: Node = null; @property(Node) btn_email: Node = null; @property(Node) btn_activity: Node = null; @property(Node) btn_welfare: Node = null; start() { UIButton.BindClick(this.btn_shop,()=>{ UIManager.AddPrefab(GameMng.Instance.shop_view) },this) UIButton.BindClick(this.btn_bag,()=>{ UIManager.AddPrefab(GameMng.Instance.bag_view) },this) UIButton.BindClick(this.btn_email,()=>{ UIManager.AddPrefab(GameMng.Instance.email_view) },this) UIButton.BindClick(this.btn_activity,()=>{ UIManager.AddPrefab(GameMng.Instance.activity_view) },this) UIButton.BindClick(this.btn_welfare,()=>{ UIManager.AddPrefab(GameMng.Instance.welfare_view) },this) } update(deltaTime: number) { } }