Beispiel #1
0
    //[RPC]
    private void SetMoveTargetRPC(Vector3 target, bool shouldIssueCommand)
    {
        _movementTarget = target;

        if (shouldIssueCommand && _movementTarget != null)
        {
            _characterComponent.IssueMoveCommand(_movementTarget.Value);
        }

        if (OnMovementTargetChanged != null)
        {
            OnMovementTargetChanged(target, false);
        }
    }