コード例 #1
0
    public override void OnPrepareSceneChange()
    {
        UnityEngine.Debug.Log("Performance Table Loading Start");
        this.tableLoadingStartTime = Time.realtimeSinceStartup;
        NrTSingleton <FormsManager> .Instance.CloseForm(G_ID.LOGIN_SELECT_PLATFORM_DLG);

        NrLoadPageScreen.LoginLatestChar = (NrTSingleton <NrMainSystem> .Instance.GetLatestPersonID() > 0L);
        if (NrTSingleton <NrGlobalReference> .Instance.GetCurrentServiceArea() == eSERVICE_AREA.SERVICE_ANDROID_BANDNAVER || NrTSingleton <NrGlobalReference> .Instance.GetCurrentServiceArea() == eSERVICE_AREA.SERVICE_ANDROID_BANDGOOGLE)
        {
            NrLoadPageScreen.LoginLatestChar = false;
        }
        NrLoadPageScreen.DecideLoadingType(Scene.CurScene, this.SceneType());
        if (NrLoadPageScreen.LoginLatestChar)
        {
            NrLoadPageScreen.StepUpMain(3);
        }
        else
        {
            NrLoadPageScreen.StepUpMain(2);
        }
        NrLoadPageScreen.ShowHideLoadingImg(true);
        if (TsPlatform.IsMobile)
        {
            NmMainFrameWork.DeleteImage();
        }
        NrTSingleton <PreloadDataTableMgr> .Instance.StopPreLoadTable();
    }
コード例 #2
0
 public override void OnPrepareSceneChange()
 {
     UnityEngine.Debug.Log(string.Concat(new object[]
     {
         "!!!!! ScreenSize Width : ",
         Screen.width,
         ", Height, : ",
         Screen.height
     }));
     NrLoadPageScreen.DecideLoadingType(Scene.CurScene, this.SceneType());
     NrLoadPageScreen.StepUpMain(1);
     if (NrTSingleton <NrMainSystem> .Instance.m_ReLogin)
     {
         NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.DLG_LOADINGPAGE);
     }
     NrLoadPageScreen.ShowHideLoadingImg(false);
     UIDataManager.MuteBGM    = TsAudio.IsMuteAudio(EAudioType.BGM);
     UIDataManager.MuteEffect = TsAudio.IsMuteAudio(EAudioType.SFX);
     if (null == NmMainFrameWork.loginCamera)
     {
         NmMainFrameWork.loginCamera      = (Camera)UnityEngine.Object.Instantiate(Camera.main);
         NmMainFrameWork.loginCamera.name = "loginCamera";
         NmMainFrameWork.loginCamera.gameObject.SetActive(false);
         Transform child = NmMainFrameWork.loginCamera.transform.GetChild(0);
         if (null != child)
         {
             UnityEngine.Object.Destroy(child.gameObject);
         }
         UnityEngine.Object.DontDestroyOnLoad(NmMainFrameWork.loginCamera);
     }
     NrTSingleton <NkBattleReplayManager> .Instance.Init();
 }
コード例 #3
0
    public override void OnPrepareSceneChange()
    {
        NrLoadPageScreen.DecideLoadingType(Scene.CurScene, this.SceneType());
        NrLoadPageScreen.StepUpMain(1);
        this._mapLoader.Reset();
        StageWorld.m_eBattleRoomType = eBATTLE_ROOMTYPE.eBATTLE_ROOMTYPE_NONE;
        if (Scene.CurScene != Scene.Type.BATTLE)
        {
            NrLoadPageScreen.ShowHideLoadingImg(true);
        }
        else
        {
            StageWorld.m_eBattleRoomType = Battle.BATTLE.BattleRoomtype;
            if (Battle.BATTLE.Observer || StageWorld.m_eBattleRoomType == eBATTLE_ROOMTYPE.eBATTLE_ROOMTYPE_PREVIEW)
            {
                NrLoadPageScreen.ShowHideLoadingImg(true);
            }
        }
        if ((Scene.PreScene == Scene.Type.BATTLE || Scene.CurScene == Scene.Type.BATTLE || Scene.PreScene == Scene.Type.SOLDIER_BATCH || Scene.CurScene == Scene.Type.SOLDIER_BATCH) && (TsPlatform.IsLowSystemMemory || TsPlatform.IsEditor))
        {
            NrTSingleton <NkClientLogic> .Instance.CharWarpRequest(0);

            GS_WARP_REQ gS_WARP_REQ = new GS_WARP_REQ();
            gS_WARP_REQ.nMode = 1;
            SendPacket.GetInstance().SendObject(eGAME_PACKET_ID.GS_WARP_REQ, gS_WARP_REQ);
        }
        NmMainFrameWork.DeleteImage();
        base.ResetCoTasks();
    }
コード例 #4
0
 public override void OnPrepareSceneChange()
 {
     NrLoadPageScreen.DecideLoadingType(Scene.CurScene, this.SceneType());
     NrLoadPageScreen.StepUpMain(1);
     UIDataManager.MuteBGM    = TsAudio.IsMuteAudio(EAudioType.BGM);
     UIDataManager.MuteEffect = TsAudio.IsMuteAudio(EAudioType.SFX);
 }
コード例 #5
0
 public override void OnPrepareSceneChange()
 {
     NrLoadPageScreen.DecideLoadingType(Scene.CurScene, this.SceneType());
     NrLoadPageScreen.CustomLoadingProgress = true;
     NrLoadPageScreen.StepUpMain(1);
     NrLoadPageScreen.ShowHideLoadingImg(true);
 }
コード例 #6
0
    public override void OnPrepareSceneChange()
    {
        NrLoadPageScreen.DecideLoadingType(Scene.CurScene, this.SceneType());
        NrLoadPageScreen.StepUpMain(1);
        NrLoadPageScreen.ShowHideLoadingImg(true);
        NrTSingleton <NkClientLogic> .Instance.SetLoginGameServer(false);

        UnityEngine.Debug.LogWarning("========== StageSelectCharMobile : SetLoginGameServer false ----- ");
    }
コード例 #7
0
    public override void OnPrepareSceneChange()
    {
        NrLoadPageScreen.DecideLoadingType(Scene.CurScene, this.SceneType());
        NrLoadPageScreen.StepUpMain(1);
        NrTSingleton <FormsManager> .Instance.CloseForm(G_ID.LOGINRATING_DLG);

        NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.PREDOWNLOAD_DLG);

        NmMainFrameWork.DeleteImage();
    }
コード例 #8
0
    public override void OnPrepareSceneChange()
    {
        NrLoadPageScreen.DecideLoadingType(Scene.CurScene, this.SceneType());
        NrLoadPageScreen.StepUpMain(1);
        NrTSingleton <FormsManager> .Instance.CloseForm(G_ID.LOGIN_SELECT_PLATFORM_DLG);

        NrTSingleton <FormsManager> .Instance.CloseForm(G_ID.LOGINRATING_DLG);

        this.PreDownloadDlg = (NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.PREDOWNLOAD_DLG) as Mobile_PreDownloadDlg);
        NmMainFrameWork.DeleteImage();
        this.SetPlatformPath();
    }
コード例 #9
0
 public override void OnPrepareSceneChange()
 {
     NrLoadPageScreen.DecideLoadingType(Scene.CurScene, this.SceneType());
     if (NrLoadPageScreen.LoginLatestChar)
     {
         NrLoadPageScreen.StepUpMain(1);
     }
     else
     {
         NrLoadPageScreen.StepUpMain(2);
     }
     NrLoadPageScreen.ShowHideLoadingImg(true);
 }
コード例 #10
0
    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;
    }
コード例 #11
0
    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();
    }