summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_EnterSceneNtf.cs
blob: c16d06c3b4c11841a3aa6109d267111c6cf961d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
using System;
using XUtliPoolLib;

namespace XMainClient
{
	internal class Process_PtcG2C_EnterSceneNtf
	{
		public static void Process(PtcG2C_EnterSceneNtf roPtc)
		{
			XSingleton<XClientNetwork>.singleton.XLoginStep = XLoginStep.Playing;
			XHeroBattleDocument.LoadSkillHandler = roPtc.Data.canMorph;
			bool sceneReady = XSingleton<XScene>.singleton.SceneReady;
			if (sceneReady)
			{
				XSingleton<XScene>.singleton.SceneEnterTo(roPtc.Data, true);
			}
			else
			{
				XSingleton<XScene>.singleton.StoreSceneConfig(roPtc.Data);
			}
		}
	}
}