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/XEmpty.cs | 46 +++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/XEmpty.cs (limited to 'Client/Assets/Scripts/XMainClient/XEmpty.cs') diff --git a/Client/Assets/Scripts/XMainClient/XEmpty.cs b/Client/Assets/Scripts/XMainClient/XEmpty.cs new file mode 100644 index 00000000..5d2aa5bf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XEmpty.cs @@ -0,0 +1,46 @@ +using System; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal sealed class XEmpty : XEntity + { + public override ulong ID + { + get + { + return this._id; + } + } + + public override string Prefab + { + get + { + return "empty"; + } + } + + private ulong _id = 0UL; + + public bool Initilize(XGameObject o) + { + this._eEntity_Type |= XEntity.EnitityType.Entity_Empty; + this._xobject = o; + this._xobject.Name = this.ID.ToString(); + this.EngineObject.Position = Vector3.zero; + this.EngineObject.Rotation = Quaternion.identity; + return true; + } + + public override void OnCreated() + { + } + + public override void Uninitilize() + { + base.Uninitilize(); + } + } +} -- cgit v1.1-26-g67d0