//宠物强化结果.. private static void msg_SCID_PET_UP_ACK(int iMsgID, ref CMessage msg) { CliProto.SC_PET_UP_ACK refMsg = (CliProto.SC_PET_UP_ACK)msg; if (refMsg.m_Ok == 1) { sdNewPetMgr.Instance.UpdatePetUp((UInt64)refMsg.m_DBID, refMsg.m_Up); GameObject wnd = sdGameLevel.instance.NGUIRoot; if (wnd) { sdUIPetPropPnl petPropPnl = wnd.GetComponentInChildren <sdUIPetPropPnl>(); if (petPropPnl) { petPropPnl.ReflashPetPropUI(); } sdUIPetStrongPnl petStrongPnl = wnd.GetComponentInChildren <sdUIPetStrongPnl>(); if (petStrongPnl) { petStrongPnl.ReflashPetStrongIcon(); petStrongPnl.OnStrongSuccess(); } } } }
//宠物属性更新.. private static void msg_SCID_SINGLE_ENTER_NTF(int iMsgID, ref CMessage msg) { CliProto.SC_PET_SINGLE_ENTER_NTF refMsg = (CliProto.SC_PET_SINGLE_ENTER_NTF)msg; sdNewPetMgr.Instance.UpdatePetInfo(refMsg); GameObject wnd = sdGameLevel.instance.NGUIRoot; if (wnd) { sdUIPetListPnl petListPnl = wnd.GetComponentInChildren <sdUIPetListPnl>(); if (petListPnl) { petListPnl.RefreshPetListPage(); } sdUIPetPropPnl petPropPnl = wnd.GetComponentInChildren <sdUIPetPropPnl>(); if (petPropPnl) { petPropPnl.ReflashPetPropUI(); } // sdUIPetLevelPnl petLevelPnl = wnd.GetComponentInChildren<sdUIPetLevelPnl>(); // if (petLevelPnl && bPetLeveling==false) // { // if (bPetLeveling==false) // petLevelPnl.ReflashPetLevelUI(); // bPetLeveling = false; // } sdUIPetChangeEquipPnl petCEquipPnl = wnd.GetComponentInChildren <sdUIPetChangeEquipPnl>(); if (petCEquipPnl) { petCEquipPnl.ReflashPetEquipUI(); } } }