summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/Components/ActionStates/XFallEventArgs.cs
blob: efe6d3546d171775858990e5ff0a7d2fed9a8dad (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
using System;

namespace XMainClient
{
	internal class XFallEventArgs : XActionArgs
	{
		public float HVelocity { get; set; }

		public float Gravity { get; set; }

		public XFallEventArgs()
		{
			this._eDefine = XEventDefine.XEvent_Fall;
		}

		public override void Recycle()
		{
			this.HVelocity = 0f;
			this.Gravity = 0f;
			base.Recycle();
			XEventPool<XFallEventArgs>.Recycle(this);
		}
	}
}