1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 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); } } }