Beispiel #1
0
 // 战斗记录
 public void ShowBattleRecordView(Data_MapBattle_R data)
 {
     if (m_BattleRecordView == null)
     {
         System.Action <Object> handler = (asset) => {
             if (asset != null)
             {
                 GameObject battleRecordViewObject = (GameObject)GameObject.Instantiate(asset);
                 m_BattleRecordView = battleRecordViewObject.GetComponent <BattleRecordView>();
                 m_BattleRecordView.show(data);
                 NGUIUtility.SetParent(waitingParentT, battleRecordViewObject.transform);
             }
         };
         StartCoroutine(BundleMgr.CreateObject(kResource.View, "BattleRecordView", "BattleRecordView", handler));
     }
 }
    public void Process(Message_Body info)
    {
        Data_MapBattle_R data = Globals.ToObject <Data_MapBattle_R>(info.body);

        if (data != null)
        {
            if (data.result)
            {
                Globals.It.DestoryMainView();
                Globals.It.HideWaiting();
                Globals.It.ShowBattleRecordView(data);
            }
            else
            {
                Globals.It.HideWaiting();
                Globals.It.ShowWarn(Const_ITextID.Msg_Tishi, data.message, null);
            }
        }
        else
        {
            Globals.It.HideWaiting();
        }
    }
Beispiel #3
0
 public void show(Data_MapBattle_R data)
 {
     m_battleData = data;
     _startData();
     _showStartEffect();
 }