summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/XEmpty.cs
blob: 5d2aa5bfc4036172a1e7e30be52024473dc5703e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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();
		}
	}
}