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

namespace XMainClient
{
	internal class Process_PtcG2C_TeleportNotice
	{
		public static void Process(PtcG2C_TeleportNotice roPtc)
		{
			bool flag = DlgBase<BattleMain, BattleMainBehaviour>.singleton.IsLoaded();
			if (flag)
			{
				bool onnotice = roPtc.Data.onnotice;
				if (onnotice)
				{
					DlgBase<BattleMain, BattleMainBehaviour>.singleton.ShowNotice(XStringDefineProxy.GetString("LEVEL_ALL_TRANSPORT"), 5f, 1f);
				}
				else
				{
					DlgBase<BattleMain, BattleMainBehaviour>.singleton.StopNotice();
				}
			}
		}
	}
}