Пример #1
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();
            }
        }
    }
Пример #2
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();
            }
        }
    }