public void ResetFlightTime(float xVelocity) { this._flyTime = this._active ? this._data.flightTimeMax : 0; if (this._type != 0) return; this._flyTime += (int)((double)Math.Abs(xVelocity) * 20.0); }