//世界boss结算反馈.. private static void msg_SC_WB_RESULT_ACK(int iMsgID, ref CMessage msg) { CliProto.SC_WB_RESULT_ACK refMsg = (CliProto.SC_WB_RESULT_ACK)msg; if (refMsg.m_Result == 0) { HeaderProto.SWorldBossInfo info = refMsg.m_Info; sdActGameMgr.Instance.BuildWorldBossInfo(info); GameObject wnd = sdGameLevel.instance.NGUIRoot; if (wnd) { sdUIWorldBossWnd bossWnd = wnd.GetComponentInChildren <sdUIWorldBossWnd>(); if (bossWnd) { bossWnd.RefreshWorldBossUI(); bossWnd.RefreshLBItemListPage(); sdActGameMgr.Instance.m_uuWorldBossLastBlood = sdActGameMgr.Instance.m_WorldBossInfo.m_Blood; sdActGameMgr.Instance.m_uuWorldBossNowBlood = sdActGameMgr.Instance.m_WorldBossInfo.m_Blood; bNeedResetWorldBossHP = true; } } } }
//世界boss鼓舞buff反馈.. private static void msg_SC_WB_ADD_BUF_ACK(int iMsgID, ref CMessage msg) { CliProto.SC_WB_ADD_BUF_ACK refMsg = (CliProto.SC_WB_ADD_BUF_ACK)msg; sdActGameMgr.Instance.m_iWBMyBuff = refMsg.m_Result; GameObject wnd = sdGameLevel.instance.NGUIRoot; if (wnd) { sdUIWorldBossWnd bossWnd = wnd.GetComponentInChildren <sdUIWorldBossWnd>(); if (bossWnd) { bossWnd.RefreshWorldBossUI(); } } }
//世界boss信息刷新反馈.. private static void msg_SC_WB_INFO_REFRESH_ACK(int iMsgID, ref CMessage msg) { CliProto.SC_WB_INFO_REFRESH_ACK refMsg = (CliProto.SC_WB_INFO_REFRESH_ACK)msg; HeaderProto.SWorldBossInfo info = refMsg.m_Info; sdActGameMgr.Instance.BuildWorldBossInfo(info); GameObject wnd = sdGameLevel.instance.NGUIRoot; if (wnd) { sdUIWorldBossWnd bossWnd = wnd.GetComponentInChildren <sdUIWorldBossWnd>(); if (bossWnd) { bossWnd.RefreshWorldBossUI(); bossWnd.RefreshLBItemListPage(); } } }
//进入世界boss反馈.. private static void msg_SC_WB_ENTER_ACK(int iMsgID, ref CMessage msg) { CliProto.SC_WB_ENTER_ACK refMsg = (CliProto.SC_WB_ENTER_ACK)msg; if (refMsg.m_Result == 0) { HeaderProto.SWorldBossInfo info = refMsg.m_Info; sdActGameMgr.Instance.BuildWorldBossInfo(info); GameObject wnd = sdGameLevel.instance.NGUIRoot; if (wnd) { sdUIWorldBossWnd bossWnd = wnd.GetComponentInChildren <sdUIWorldBossWnd>(); if (bossWnd) { bossWnd.RefreshWorldBossUI(); bossWnd.RefreshLBItemListPage(); int iLevelID = sdActGameMgr.Instance.GetWorldBossLevelID(); if (iLevelID > 0) { sdLevelInfo.SetCurLevelId(iLevelID); // 通知宠物管理器.. sdNewPetMgr.Instance.OnEnterLevel(); sdUICharacter.Instance.iCurrentLevelID = iLevelID; sdUICharacter.Instance.bCampaignLastLevel = false; sdUICharacter.Instance.SetBattleType((byte)HeaderProto.LEVEL_BATTLE_TYPE.LEVEL_BATTLE_TYPE_WORLD_BOSS); //申请进入场景.. BundleGlobal.SetBundleDontUnload("UI/$FightUI.unity3d"); sdResourceMgr.Instance.LoadResource("UI/UIPrefab/$Fight.prefab", sdUIWorldBossWndBtn.OnLoadFightUI, null); sdUILoading.ActiveLoadingUI("cave1", "凶恶的世界BOSS"); bossWnd.setbossmodelVisible(false); bossWnd.m_bWorldBossAck = true; sdActGameMgr.Instance.m_uuWorldBossLastBlood = sdActGameMgr.Instance.m_WorldBossInfo.m_Blood; sdActGameMgr.Instance.m_uuWorldBossNowBlood = sdActGameMgr.Instance.m_WorldBossInfo.m_Blood; } } } } }