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