From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../Assets/Scripts/XMainClient/XEndureEventArgs.cs | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/XEndureEventArgs.cs (limited to 'Client/Assets/Scripts/XMainClient/XEndureEventArgs.cs') diff --git a/Client/Assets/Scripts/XMainClient/XEndureEventArgs.cs b/Client/Assets/Scripts/XMainClient/XEndureEventArgs.cs new file mode 100644 index 00000000..b422a7f1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XEndureEventArgs.cs @@ -0,0 +1,28 @@ +using System; +using UnityEngine; + +namespace XMainClient +{ + internal class XEndureEventArgs : XEventArgs + { + public string Fx = null; + + public Vector3 Dir = Vector3.zero; + + public XEntity HitFrom = null; + + public XEndureEventArgs() + { + this._eDefine = XEventDefine.XEvent_Endure; + } + + public override void Recycle() + { + this.Fx = null; + this.Dir = Vector3.zero; + this.HitFrom = null; + base.Recycle(); + XEventPool.Recycle(this); + } + } +} -- cgit v1.1-26-g67d0