Exemple #1
0
    private void Update()
    {
        _distanceFromPlayer = Vector3.Distance(_player.position, transform.position);
        if (_distanceFromPlayer < stopDistance)
        {
            //stop movement
            _currentSpeed = 0;
        }
        else
        {
            _currentSpeed = EnemyMovement.MoveSpeed;
        }

        _weaponSystem.EngageCombat();
    }
Exemple #2
0
 public void Execute()
 {
     _weaponSystem.EngageCombat();
 }