Exemplo n.º 1
0
    private void UpdateTarget()
    {
        if (!_targetFinder.FindNewTarget(findTargetCondition))
        {
            return;
        }

        _movementComponent.SetDestination(_targetFinder.Target);
        _attackComponent.Target = _targetFinder.Target;
    }
Exemplo n.º 2
0
 public void SetDestination(
     Vector3 pos,
     float heading            = MovementComponent.NO_HEADING,
     MoveCommandType moveMode = MoveCommandType.FAST) =>
 _movementComponent.SetDestination(pos, heading, moveMode);