Beispiel #1
0
    public void OnMsgFloorReliveReslut_S2C(PacketReader p, object state)
    {
        Debug.Log("OnENMsgSyncFloorInst_S2C");
        int            floorID  = p.ReadInt32();
        int            reslut   = p.ReadInt32();
        ENReliveReslut enReslut = (ENReliveReslut)reslut;

        UIRelive.GetInstance().OnBuyReliveMsgCallBack(floorID, enReslut);
    }
Beispiel #2
0
 public void OnBuyReliveMsgCallBack(int floorId, ENReliveReslut result)
 {
     if (result == ENReliveReslut.enReliveSucess)
     {
         Relive();
         if (BattleArena.Singleton.m_origialCount > 0)
         {
             BattleArena.Singleton.m_origialCount = BattleArena.Singleton.m_origialCount - 1;
         }
         HideWindow();
     }
 }