From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- Client/Assets/Scripts/XMainClient/XPuppet.cs | 29 ++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/XPuppet.cs (limited to 'Client/Assets/Scripts/XMainClient/XPuppet.cs') diff --git a/Client/Assets/Scripts/XMainClient/XPuppet.cs b/Client/Assets/Scripts/XMainClient/XPuppet.cs new file mode 100644 index 00000000..e7e336d9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPuppet.cs @@ -0,0 +1,29 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal sealed class XPuppet : XEnemy + { + public override bool Initilize(int flag) + { + base.Initilize(flag); + this._eEntity_Type |= XEntity.EnitityType.Entity_Puppet; + bool flag2 = (flag & XFastEnumIntEqualityComparer.ToInt(XEntity.InitFlag.Entity_Transform)) == 0; + if (flag2) + { + this._audio = (XSingleton.singleton.CreateComponent(this, XAudioComponent.uuID) as XAudioComponent); + } + bool syncMode = XSingleton.singleton.SyncMode; + if (syncMode) + { + base.IsServerFighting = true; + } + return true; + } + + protected override void Move() + { + } + } +} -- cgit v1.1-26-g67d0