diff options
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/Components/ActionStates/XMoveEventArgs.cs')
-rw-r--r-- | Client/Assets/Scripts/XMainClient/Components/ActionStates/XMoveEventArgs.cs | 34 |
1 files changed, 34 insertions, 0 deletions
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<XMoveEventArgs>.Recycle(this);
+ }
+ }
+}
|