예제 #1
0
    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));
    }
예제 #2
0
 internal void on_OnLaunched(Vector LaunchVelocity, bool bXYOverride, bool bZOverride) =>
 OnLaunched?.Invoke(LaunchVelocity, bXYOverride, bZOverride);