public void Launch(Vector3 _direction, bool curved, bool fastLaunch) { lastPlayer = player; player = null; CurrentState = State.LAUNCHED; direction = _direction.normalized; baseDirection = _direction.normalized; if (curved) { curveAngle = baseCurveAngle; this.Curved = true; } if (fastLaunch) { currentSpeed += fastLaunchAddedSpeed; } OnLaunched?.Invoke(this, new FrisbeeEventArgs(lastPlayer, currentArea)); }
internal void on_OnLaunched(Vector LaunchVelocity, bool bXYOverride, bool bZOverride) => OnLaunched?.Invoke(LaunchVelocity, bXYOverride, bZOverride);