123456789101112131415161718192021222324252627282930313233343536 |
- import { _decorator, Component, Node } from 'cc';
- import { zhuang_ban_type } from '../constant';
- const { ccclass, property } = _decorator;
- @ccclass('bag_zhuang_ban_manager')
- export class bag_zhuang_ban_manager extends Component {
- @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.touxiangkuang_view.active = false;
- this.jishiqi_view.active = false;
- this.qipao_view.active = false;
- switch(type){
- 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) {
-
- }
- }
|