From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../Scripts/XMainClient/sorceress_slash_show.cs | 80 ++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/sorceress_slash_show.cs (limited to 'Client/Assets/Scripts/XMainClient/sorceress_slash_show.cs') 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 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.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.singleton.SetTimer(0.3f, new XTimerMgr.ElapsedEventHandler(sorceress_slash_show.Disappear), null); + sorceress_slash_show.token2 = XSingleton.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.singleton.KillTimer(sorceress_slash_show.token1); + XSingleton.singleton.KillTimer(sorceress_slash_show.token2); + XSingleton.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) + { + } + } +} -- cgit v1.1-26-g67d0