summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/sorceress_slash_show.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/sorceress_slash_show.cs')
-rw-r--r--Client/Assets/Scripts/XMainClient/sorceress_slash_show.cs80
1 files changed, 80 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/sorceress_slash_show.cs b/Client/Assets/Scripts/XMainClient/sorceress_slash_show.cs
new file mode 100644
index 00000000..de44811f
--- /dev/null
+++ b/Client/Assets/Scripts/XMainClient/sorceress_slash_show.cs
@@ -0,0 +1,80 @@
+using System;
+using System.Collections.Generic;
+using XUtliPoolLib;
+
+namespace XMainClient
+{
+ internal class sorceress_slash_show
+ {
+ private static bool _start = false;
+
+ private static bool _start2 = false;
+
+ private static uint token1 = 0u;
+
+ private static uint token2 = 0u;
+
+ private static uint token3 = 0u;
+
+ private static XActor _sorceress = null;
+
+ 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 = !sorceress_slash_show._start2;
+ if (flag3)
+ {
+ sorceress_slash_show.token3 = XSingleton<XTimerMgr>.singleton.SetTimer(0.2f, new XTimerMgr.ElapsedEventHandler(sorceress_slash_show.ResetBound), actors);
+ sorceress_slash_show._start2 = true;
+ }
+ }
+ bool flag4 = !sorceress_slash_show._start;
+ if (flag4)
+ {
+ sorceress_slash_show.token1 = XSingleton<XTimerMgr>.singleton.SetTimer(0.3f, new XTimerMgr.ElapsedEventHandler(sorceress_slash_show.Disappear), null);
+ sorceress_slash_show.token2 = XSingleton<XTimerMgr>.singleton.SetTimer(0.9f, new XTimerMgr.ElapsedEventHandler(sorceress_slash_show.Appear), null);
+ sorceress_slash_show._start = true;
+ }
+ bool flag5 = actors != null && actors.Count > 0;
+ if (flag5)
+ {
+ sorceress_slash_show._sorceress = actors[0];
+ }
+ bool flag6 = actors == null;
+ if (flag6)
+ {
+ sorceress_slash_show._start = false;
+ sorceress_slash_show._start2 = false;
+ XSingleton<XTimerMgr>.singleton.KillTimer(sorceress_slash_show.token1);
+ XSingleton<XTimerMgr>.singleton.KillTimer(sorceress_slash_show.token2);
+ XSingleton<XTimerMgr>.singleton.KillTimer(sorceress_slash_show.token3);
+ }
+ return true;
+ }
+
+ private static void Disappear(object o)
+ {
+ sorceress_slash_show._sorceress.EngineObject.SetActive(false, "");
+ }
+
+ private static void Appear(object o)
+ {
+ sorceress_slash_show._sorceress.EngineObject.SetActive(true, "");
+ }
+
+ private static void ResetBound(object o)
+ {
+ }
+ }
+}