diff options
author | chai <chaifix@163.com> | 2021-01-25 14:28:30 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-01-25 14:28:30 +0800 |
commit | 6eb915c129fc90c6f4c82ae097dd6ffad5239efc (patch) | |
tree | 7dd2be50edf41f36b60fac84696e731c13afe617 /Client/Assets/Scripts/XMainClient/geraint_fly_away.cs |
+scripts
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/geraint_fly_away.cs')
-rw-r--r-- | Client/Assets/Scripts/XMainClient/geraint_fly_away.cs | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/geraint_fly_away.cs b/Client/Assets/Scripts/XMainClient/geraint_fly_away.cs new file mode 100644 index 00000000..e08f4faa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/geraint_fly_away.cs @@ -0,0 +1,45 @@ +using System;
+using System.Collections.Generic;
+using XUtliPoolLib;
+
+namespace XMainClient
+{
+ internal class geraint_fly_away
+ {
+ private static bool _once = false;
+
+ public static bool Do(List<XActor> actors)
+ {
+ bool flag = actors == null;
+ bool result;
+ if (flag)
+ {
+ geraint_fly_away._once = false;
+ result = true;
+ }
+ else
+ {
+ bool once = geraint_fly_away._once;
+ if (once)
+ {
+ result = false;
+ }
+ else
+ {
+ geraint_fly_away._once = true;
+ List<XEntity> ally = XSingleton<XEntityMgr>.singleton.GetAlly(XSingleton<XEntityMgr>.singleton.Player);
+ foreach (XEntity xentity in ally)
+ {
+ bool flag2 = xentity.Attributes.TypeID == 3002u || xentity.Attributes.TypeID == 3001u;
+ if (flag2)
+ {
+ xentity.EngineObject.Position = XResourceLoaderMgr.Far_Far_Away;
+ }
+ }
+ result = true;
+ }
+ }
+ return result;
+ }
+ }
+}
|