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/XEmpty.cs |
+scripts
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/XEmpty.cs')
-rw-r--r-- | Client/Assets/Scripts/XMainClient/XEmpty.cs | 46 |
1 files changed, 46 insertions, 0 deletions
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();
+ }
+ }
+}
|