protected override void DoInvestigating()
        {
            MovementDirection = NpcSensorSound.GetNewestSoundPosition() - Mover.transform.root.position;

            Mover.MoveTowardsDirection(MovementDirection);
            noEnemySightRoutine.UpdateSightRoutine(MovementDirection);
        }
Example #2
0
		protected override void DoInvestigating()
		{
			MovementDirection = NpcSensorSound.GetNewestSoundPosition() - Mover.transform.root.position;
			Mover.RotateTowardsDirection(MovementDirection);
			
			if (!(Health.HealthPoints < HealthRetreatTolerance)) return;
			
			if(!IsOutsideOfZone)
				Mover.MoveTowardsDirection(-MovementDirection);
			else
				Mover.MoveTowardsDirection(MovementDirection);
		}