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/XOpposer.cs | 44 +++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/XOpposer.cs (limited to 'Client/Assets/Scripts/XMainClient/XOpposer.cs') diff --git a/Client/Assets/Scripts/XMainClient/XOpposer.cs b/Client/Assets/Scripts/XMainClient/XOpposer.cs new file mode 100644 index 00000000..48c24b5e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XOpposer.cs @@ -0,0 +1,44 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XOpposer : XEnemy + { + public override bool Initilize(int flag) + { + base.Initilize(flag); + this._eEntity_Type |= XEntity.EnitityType.Entity_Opposer; + bool flag2 = base.Ator != null; + if (flag2) + { + XSingleton.singleton.CreateComponent(this, XMoveComponent.uuID); + } + bool flag3 = (flag & XFastEnumIntEqualityComparer.ToInt(XEntity.InitFlag.Entity_Transform)) == 0; + if (flag3) + { + bool flag4 = !XSingleton.singleton.SyncMode; + if (flag4) + { + XSingleton.singleton.CreateComponent(this, XManipulationComponent.uuID); + } + XSingleton.singleton.CreateComponent(this, XChargeComponent.uuID); + this._buff = (XSingleton.singleton.CreateComponent(this, XBuffComponent.uuID) as XBuffComponent); + this._rotate = (XSingleton.singleton.CreateComponent(this, XRotationComponent.uuID) as XRotationComponent); + this._audio = (XSingleton.singleton.CreateComponent(this, XAudioComponent.uuID) as XAudioComponent); + XSingleton.singleton.CreateComponent(this, XEndureComponent.uuID); + bool flag5 = XSingleton.singleton.SceneCanNavi(XSingleton.singleton.SceneID); + if (flag5) + { + this._nav = (XSingleton.singleton.CreateComponent(this, XNavigationComponent.uuID) as XNavigationComponent); + } + bool flag6 = !XSingleton.singleton.SyncMode; + if (flag6) + { + this._ai = (XSingleton.singleton.CreateComponent(this, XAIComponent.uuID) as XAIComponent); + } + } + return true; + } + } +} -- cgit v1.1-26-g67d0