12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- import { _decorator, Component, Node } from 'cc';
- import { zhuang_ban_type } from '../constant';
- const { ccclass, property } = _decorator;
- @ccclass('shop_zhuang_ban_manager')
- export class shop_zhuang_ban_manager extends Component {
- @property(Node) qipan_view:Node = null
- @property(Node) qizi_view:Node = null
- @property(Node) touxiangkuang_view:Node = null
- @property(Node) jishiqi_view:Node = null
- @property(Node) qipao_view:Node = null
- start() {
- }
- show(type:zhuang_ban_type){
- this.qipan_view.active = false;
- this.qizi_view.active = false;
- this.touxiangkuang_view.active = false;
- this.jishiqi_view.active = false;
- this.qipao_view.active = false;
- switch(type){
- case zhuang_ban_type.qi_pan:
- this.qipan_view.active = true;
- break;
- case zhuang_ban_type.qi_zi:
- this.qizi_view.active = true;
- break;
- case zhuang_ban_type.tou_xiang_kuang:
- this.touxiangkuang_view.active = true;
- break;
- case zhuang_ban_type.ji_shi_qi:
- this.jishiqi_view.active = true;
- break;
- case zhuang_ban_type.qi_pao:
- this.qipao_view.active = true;
- break;
- }
- }
- update(deltaTime: number) {
-
- }
- }
|