summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/XGravityComponent.cs
blob: 718d8ac3d21d2531d2bf55cc897c0162e6b431c8 (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
using System;
using XUtliPoolLib;

namespace XMainClient
{
	internal sealed class XGravityComponent : XComponent
	{
		public override uint ID
		{
			get
			{
				return XGravityComponent.uuID;
			}
		}

		public new static readonly uint uuID = XSingleton<XCommon>.singleton.XHash("Entity_Gravity");

		public override void Update(float fDeltaT)
		{
			bool flag = !this._entity.GravityDisabled;
			if (flag)
			{
				this._entity.ApplyMove(0f, -1f, 0f);
			}
		}
	}
}