summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/assassin_slash_show.cs
blob: b07f96810953fd4ef8e33cfb448e745a3195acf0 (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
using System;
using System.Collections.Generic;
using XUtliPoolLib;

namespace XMainClient
{
	internal class assassin_slash_show
	{
		private static bool _start = false;

		private static uint token = 0u;

		public static bool Do(List<XActor> actors)
		{
			bool flag = actors != null && actors.Count == XGame.RoleCount;
			if (flag)
			{
				bool flag2 = actors[0].Dummy.BillBoard != null;
				if (flag2)
				{
					actors[0].Dummy.BillBoard.HideBillboard();
				}
				for (int i = 1; i < XGame.RoleCount; i++)
				{
					XSelectcharStage.ShowBillboard(actors[i].Dummy);
				}
				bool flag3 = !assassin_slash_show._start;
				if (flag3)
				{
					assassin_slash_show.token = XSingleton<XTimerMgr>.singleton.SetTimer(0.2f, new XTimerMgr.ElapsedEventHandler(assassin_slash_show.ResetBound), actors);
					assassin_slash_show._start = true;
				}
			}
			bool flag4 = actors == null;
			if (flag4)
			{
				assassin_slash_show._start = false;
				XSingleton<XTimerMgr>.singleton.KillTimer(assassin_slash_show.token);
			}
			return true;
		}

		private static void ResetBound(object o)
		{
		}
	}
}