diff options
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/Components/ActionStates/XFallEventArgs.cs')
-rw-r--r-- | Client/Assets/Scripts/XMainClient/Components/ActionStates/XFallEventArgs.cs | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/Components/ActionStates/XFallEventArgs.cs b/Client/Assets/Scripts/XMainClient/Components/ActionStates/XFallEventArgs.cs new file mode 100644 index 00000000..efe6d354 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Components/ActionStates/XFallEventArgs.cs @@ -0,0 +1,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);
+ }
+ }
+}
|