From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../Components/ActionStates/XMoveEventArgs.cs | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/Components/ActionStates/XMoveEventArgs.cs (limited to 'Client/Assets/Scripts/XMainClient/Components/ActionStates/XMoveEventArgs.cs') diff --git a/Client/Assets/Scripts/XMainClient/Components/ActionStates/XMoveEventArgs.cs b/Client/Assets/Scripts/XMainClient/Components/ActionStates/XMoveEventArgs.cs new file mode 100644 index 00000000..d56d8ca4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Components/ActionStates/XMoveEventArgs.cs @@ -0,0 +1,34 @@ +using System; +using UnityEngine; + +namespace XMainClient +{ + internal class XMoveEventArgs : XActionArgs + { + public Vector3 Destination = Vector3.zero; + + public float Speed = 0f; + + public bool Inertia = false; + + public bool Stoppage = true; + + public float StopTowards = 0f; + + public XMoveEventArgs() + { + this._eDefine = XEventDefine.XEvent_Move; + } + + public override void Recycle() + { + base.Recycle(); + this.Destination = Vector3.zero; + this.Speed = 0f; + this.Inertia = false; + this.Stoppage = true; + this.StopTowards = 0f; + XEventPool.Recycle(this); + } + } +} -- cgit v1.1-26-g67d0