Ejemplo n.º 1
0
    //物品碎片列表..
    private static void msg_SC_GATHER_INFO_NTF(int iMsgID, ref CMessage msg)
    {
        CliProto.SC_GATHER_INFO_NTF refMsg = (CliProto.SC_GATHER_INFO_NTF)msg;
        SDGlobal.Log("<- SCID_GATHER_INFO_NTF : ");
        sdNewPetMgr.Instance.CreatePetGatherList(refMsg);
        GameObject wnd = sdGameLevel.instance.NGUIRoot;

        if (wnd)
        {
            sdUIPetTujianPnl petPnl = wnd.GetComponentInChildren <sdUIPetTujianPnl>();
            if (petPnl)
            {
                petPnl.RefreshPetBookPage();
            }

            sdUIPetPropPnl petProp = wnd.GetComponentInChildren <sdUIPetPropPnl>();
            if (petProp)
            {
                petProp.ReflashGatherUI();
            }

            sdUIPetPaperPnl petPaper = wnd.GetComponentInChildren <sdUIPetPaperPnl>();
            if (petPaper)
            {
                petPaper.RefreshPetPaperPage();
            }
        }
    }
Ejemplo n.º 2
0
    //消耗单个碎片..
    private static void msg_SC_GATHER_SINGLE_LEAVE_NTF(int iMsgID, ref CMessage msg)
    {
        CliProto.SC_GATHER_SINGLE_LEAVE_NTF refMsg = (CliProto.SC_GATHER_SINGLE_LEAVE_NTF)msg;
        sdNewPetMgr.Instance.removePetGatherItem(refMsg.m_ID);
        GameObject wnd = sdGameLevel.instance.NGUIRoot;

        if (wnd)
        {
            sdUIPetTujianPnl petPnl = wnd.GetComponentInChildren <sdUIPetTujianPnl>();
            if (petPnl)
            {
                petPnl.RefreshPetBookPage();
            }

            sdUIPetPropPnl petProp = wnd.GetComponentInChildren <sdUIPetPropPnl>();
            if (petProp)
            {
                petProp.ReflashGatherUI();
            }

            sdUIPetPaperPnl petPaper = wnd.GetComponentInChildren <sdUIPetPaperPnl>();
            if (petPaper)
            {
                petPaper.RefreshPetPaperPage();
            }
        }
    }
Ejemplo n.º 3
0
    //角色拥有过得宠物模板ID列表..
    private static void msg_SC_PETS_RECORD_NTF(int iMsgID, ref CMessage msg)
    {
        CliProto.SC_PETS_RECORD_NTF refMsg = (CliProto.SC_PETS_RECORD_NTF)msg;
        sdNewPetMgr.Instance.CreatePetRecord(refMsg);
        GameObject wnd = sdGameLevel.instance.NGUIRoot;

        if (wnd)
        {
            sdUIPetTujianPnl petPnl = wnd.GetComponentInChildren <sdUIPetTujianPnl>();
            if (petPnl)
            {
                petPnl.RefreshPetBookPage();
            }
        }
    }