Beispiel #1
0
    public void OnRecordBack(RecordBackObj obj)
    {
        byte mainId = obj.byMainType;

        switch (mainId)
        {
        case TouZhuRecordPanel.byRord:
            if (touzhuRecordpanel == null)
            {
                touzhuRecordpanel = LoadPanel("TouZhuRecordPanel").GetComponent <TouZhuRecordPanel>();
                touzhuRecordpanel.msgSignal.AddListener(OnMsg);
            }
            touzhuRecordpanel.show(obj);
            break;

        case QuKuanRecordbkPanel.byRord:
            if (qukuanRecordPanel == null)
            {
                qukuanRecordPanel = LoadPanel("QuKuanRecordPanel").GetComponent <QuKuanRecordbkPanel>();
                qukuanRecordPanel.msgSignal.AddListener(OnMsg);
            }
            qukuanRecordPanel.show(obj);
            break;

        case ChongZhiRecordPanel.byRord:
            if (chongzhiRecordpanel == null)
            {
                chongzhiRecordpanel = LoadPanel("ChongZhiRecordPanel").GetComponent <ChongZhiRecordPanel>();
                chongzhiRecordpanel.msgSignal.AddListener(OnMsg);
            }
            chongzhiRecordpanel.show(obj);
            break;

        case YingKuiRecordPanel.byRord:
            if (yingkuiRecordPanel == null)
            {
                yingkuiRecordPanel = LoadPanel("YingKuiRecordPanel").GetComponent <YingKuiRecordPanel>();
                yingkuiRecordPanel.msgSignal.AddListener(OnMsg);
            }
            yingkuiRecordPanel.show(obj);
            break;

        case YouXiRecordPanel.byRord:
            if (youxiRecordPanel == null)
            {
                youxiRecordPanel = LoadPanel("YouXiRecordPanel").GetComponent <YouXiRecordPanel>();
                youxiRecordPanel.msgSignal.AddListener(OnMsg);
            }
            youxiRecordPanel.show(obj);
            break;
        }
    }
Beispiel #2
0
    public void OnRecordBack(RecordBackObj obj)
    {
        byte mainId = obj.byMainType;

        switch (mainId)
        {
        case TouZhuRecordPanel.byRord:
            if (touzhuRecordpanel == null)
            {
                touzhuRecordpanel = LoadPanel("TouZhuRecordPanel").GetComponent <TouZhuRecordPanel>();
                touzhuRecordpanel.msgSignal.AddListener(OnMsg);
                touzhuRecordpanel.GetComponent <UIPanel>().depth = 13;
            }
            touzhuRecordpanel.show(obj);
            break;
        }
    }