summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NotifyRoleEmpty2Watcher.cs
blob: 0988bd99d397778c9a35b8e39116c926b1ac19dd (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
27
28
29
30
31
using System;
using XMainClient.UI;
using XMainClient.UI.UICommon;
using XUtliPoolLib;

namespace XMainClient
{
	internal class Process_PtcG2C_NotifyRoleEmpty2Watcher
	{
		public static void Process(PtcG2C_NotifyRoleEmpty2Watcher roPtc)
		{
			bool flag = XSingleton<XScene>.singleton.bSpectator && !DlgBase<SpectateLevelRewardView, SpectateLevelRewardBehaviour>.singleton.IsVisible();
			if (flag)
			{
				bool flag2 = DlgBase<GuildArenaDefeatDlg, GuildArenaDefeatBehaviour>.singleton.IsVisible();
				if (!flag2)
				{
					bool flag3 = DlgBase<SpectateView, SpectateBehaviour>.singleton.IsVisible();
					if (!flag3)
					{
						bool flag4 = DlgBase<XTeamLeagueBattlePrepareView, XTeamLeagueBattlePrepareBehaviour>.singleton.BigRewardHandler != null && DlgBase<XTeamLeagueBattlePrepareView, XTeamLeagueBattlePrepareBehaviour>.singleton.BigRewardHandler.IsVisible();
						if (!flag4)
						{
							DlgBase<SpectateSceneView, SpectateSceneBehaviour>.singleton.ShowBackToMainCityTips();
						}
					}
				}
			}
		}
	}
}