private void OnStartBabel(object a_oObject) { NrPersonInfoUser charPersonInfo = NrTSingleton <NkCharManager> .Instance.GetCharPersonInfo(1); if (charPersonInfo == null) { return; } GS_BABELTOWER_START_REQ gS_BABELTOWER_START_REQ = new GS_BABELTOWER_START_REQ(); gS_BABELTOWER_START_REQ.nCombinationUnique = NrTSingleton <SolCombination_BatchSelectInfoManager> .Instance.GetUserSelectedUniqeKey(0); gS_BABELTOWER_START_REQ.nBabelRoomIndex = SoldierBatch.BABELTOWER_INFO.m_nBabelRoomIndex; gS_BABELTOWER_START_REQ.nPersonID = charPersonInfo.GetPersonID(); SendPacket.GetInstance().SendObject(eGAME_PACKET_ID.GS_BABELTOWER_START_REQ, gS_BABELTOWER_START_REQ); }
private void OnStartBabel(object a_oObject) { NrPersonInfoUser charPersonInfo = NrTSingleton <NkCharManager> .Instance.GetCharPersonInfo(1); if (charPersonInfo == null) { return; } GS_BABELTOWER_START_REQ gS_BABELTOWER_START_REQ = new GS_BABELTOWER_START_REQ(); gS_BABELTOWER_START_REQ.nCombinationUnique = NrTSingleton <SolCombination_BatchSelectInfoManager> .Instance.GetUserSelectedUniqeKey(0); gS_BABELTOWER_START_REQ.nBabelRoomIndex = SoldierBatch.BABELTOWER_INFO.m_nBabelRoomIndex; gS_BABELTOWER_START_REQ.nPersonID = charPersonInfo.GetPersonID(); SendPacket.GetInstance().SendObject(eGAME_PACKET_ID.GS_BABELTOWER_START_REQ, gS_BABELTOWER_START_REQ); NrTSingleton <FiveRocksEventManager> .Instance.BabelTowerParty((int)SoldierBatch.BABELTOWER_INFO.GetPartyCount()); if (0 >= SoldierBatch.BABELTOWER_INFO.BountHuntUnique) { if (SoldierBatch.BABELTOWER_INFO.m_nBabelFloorType == 2) { PlayerPrefs.SetInt(NrPrefsKey.LASTPLAY_BABELFLOOR_HARD, (int)SoldierBatch.BABELTOWER_INFO.m_nBabelFloor); PlayerPrefs.SetInt(NrPrefsKey.LASTPLAY_BABELSUBFLOOR_HARD, (int)SoldierBatch.BABELTOWER_INFO.m_nBabelSubFloor); } else { PlayerPrefs.SetInt(NrPrefsKey.LASTPLAY_BABELFLOOR, (int)SoldierBatch.BABELTOWER_INFO.m_nBabelFloor); PlayerPrefs.SetInt(NrPrefsKey.LASTPLAY_BABELSUBFLOOR, (int)SoldierBatch.BABELTOWER_INFO.m_nBabelSubFloor); } PlayerPrefs.SetInt(NrPrefsKey.LASTPLAY_BABELTYPE, (int)SoldierBatch.BABELTOWER_INFO.m_nBabelFloorType); } for (int i = 0; i < 4; i++) { BABELTOWER_PERSON babelPersonInfo = SoldierBatch.BABELTOWER_INFO.GetBabelPersonInfo(i); if (babelPersonInfo == null || (babelPersonInfo.nPartyPersonID != charPersonInfo.GetPersonID() && babelPersonInfo.nPartyPersonID > 0L)) { PlayerPrefs.SetString("Babel JoinPlayer" + i, babelPersonInfo.nPartyPersonID.ToString()); if (0 < SoldierBatch.BABELTOWER_INFO.BountHuntUnique) { PlayerPrefs.SetString("BountyHunt JoinPlayer" + i, babelPersonInfo.nPartyPersonID.ToString()); } } } }