public override void OnPrepareSceneChange() { Application.targetFrameRate = -1; NrTSingleton <NkCharManager> .Instance.DeleteBattleChar(); NrLoadPageScreen.DecideLoadingType(Scene.CurScene, this.SceneType()); NrLoadPageScreen.StepUpMain(1); NrLoadPageScreen.SetSkipMainStep(1); NrLoadPageScreen.ShowHideLoadingImg(true); this.BattleClient = new Battle(); this.BattleClient.Init(); this.BattleClient.Send_GS_BATTLE_READY_NFY(0); this._bTemporalBattleUpdate = true; }
public static void StepUpMain(int skipStageCnt) { if (NrLoadPageScreen._mainStepMax < skipStageCnt) { NrLoadPageScreen.SetSkipMainStep(skipStageCnt); } NrLoadPageScreen._mainStepCnt++; if (NrLoadPageScreen._mainStepCnt > NrLoadPageScreen._mainStepMax) { NrLoadPageScreen.SetSkipMainStep(skipStageCnt); NrLoadPageScreen._mainStepCnt++; } NrLoadPageScreen._mainStepAccum = (float)(NrLoadPageScreen._mainStepCnt - 1) * NrLoadPageScreen._mainStepRatio; NrLoadPageScreen.ResetCurCounter_I(); }
public override void OnReloadReserved() { NrLoadPageScreen.StepUpMain(1); NrLoadPageScreen.SetSkipMainStep(1); }
public override void OnPrepareSceneChange() { Application.targetFrameRate = -1; NrTSingleton <NkCharManager> .Instance.DeleteBattleChar(); NrLoadPageScreen.DecideLoadingType(Scene.CurScene, this.SceneType()); NrLoadPageScreen.StepUpMain(1); NrLoadPageScreen.SetSkipMainStep(1); NrLoadPageScreen.ShowHideLoadingImg(true); this.m_SoldierBatch = new SoldierBatch(); this.m_SoldierBatch.Init(); this._bTemporalBattleUpdate = true; if (TsPlatform.IsLowSystemMemory) { TsSceneSwitcher.Instance.DeleteScene(TsSceneSwitcher.ESceneType.SoldierBatchScene); } NrCharBase @char = NrTSingleton <NkCharManager> .Instance.GetChar(1); if (@char != null) { @char.m_kCharMove.MoveStop(true, false); } NrPersonInfoUser charPersonInfo = NrTSingleton <NkCharManager> .Instance.GetCharPersonInfo(1); if (SoldierBatch.SOLDIER_BATCH_MODE == eSOLDIER_BATCH_MODE.MODE_PLUNDER) { GS_PLUNDER_MATCH_PLAYER_REQ gS_PLUNDER_MATCH_PLAYER_REQ = new GS_PLUNDER_MATCH_PLAYER_REQ(); gS_PLUNDER_MATCH_PLAYER_REQ.m_PersonID = charPersonInfo.GetPersonID(); gS_PLUNDER_MATCH_PLAYER_REQ.m_nMode = 0; SendPacket.GetInstance().SendObject(eGAME_PACKET_ID.GS_PLUNDER_MATCH_PLAYER_REQ, gS_PLUNDER_MATCH_PLAYER_REQ); } if (SoldierBatch.SOLDIER_BATCH_MODE == eSOLDIER_BATCH_MODE.MODE_INFIBATTLE) { int value = COMMON_CONSTANT_Manager.GetInstance().GetValue(eCOMMON_CONSTANT.eCOMMON_CONSTANT_INFIBATTLE_LEVEL); if ((int)charPersonInfo.GetLeaderSoldierInfo().GetLevel() < value) { string empty = string.Empty; NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("129"), "level", value }); Main_UI_SystemMessage.ADDMessage(empty, SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE); return; } GS_INFIBATTLE_MATCH_REQ obj = new GS_INFIBATTLE_MATCH_REQ(); SendPacket.GetInstance().SendObject(eGAME_PACKET_ID.GS_INFIBATTLE_MATCH_REQ, obj); } if (SoldierBatch.SOLDIER_BATCH_MODE == eSOLDIER_BATCH_MODE.MODE_PRACTICE_INFIBATTLE) { GS_INFIBATTLE_PRACTICE_START_REQ gS_INFIBATTLE_PRACTICE_START_REQ = new GS_INFIBATTLE_PRACTICE_START_REQ(); gS_INFIBATTLE_PRACTICE_START_REQ.i64PersonID = charPersonInfo.GetPersonID(); gS_INFIBATTLE_PRACTICE_START_REQ.i64TargetPersonID = charPersonInfo.InfiBattlePersonID; gS_INFIBATTLE_PRACTICE_START_REQ.i32Rank = charPersonInfo.InfiBattleRank; SendPacket.GetInstance().SendObject(eGAME_PACKET_ID.GS_INFIBATTLE_PRACTICE_START_REQ, gS_INFIBATTLE_PRACTICE_START_REQ); } GS_CHAR_STATE_SET_REQ gS_CHAR_STATE_SET_REQ = new GS_CHAR_STATE_SET_REQ(); gS_CHAR_STATE_SET_REQ.nSet = 1; SendPacket.GetInstance().SendObject(eGAME_PACKET_ID.GS_CHAR_STATE_SET_REQ, gS_CHAR_STATE_SET_REQ); base.ResetCoTasks(); }