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

namespace XMainClient
{
	internal class XBeHitEventArgs : XActionArgs
	{
		public XHitData HitData { get; set; }

		public Vector3 HitDirection = Vector3.forward;

		public bool ForceToFlyHit = false;

		public float Paralyze = 1f;

		public XEntity HitFrom = null;

		public XBeHitEventArgs()
		{
			this._eDefine = XEventDefine.XEvent_BeHit;
		}

		public override void Recycle()
		{
			this.HitData = null;
			this.HitDirection = Vector3.forward;
			this.ForceToFlyHit = false;
			this.Paralyze = 1f;
			this.HitFrom = null;
			base.Recycle();
			XEventPool<XBeHitEventArgs>.Recycle(this);
		}
	}
}