Enemy AI with adjustable field of view, multi-waypoint patrols, door interaction, player hiding, interactable items, collision-based hearing, flickering lights, and smooth capture rotation.Horror Behavior System — Enemy AI, Hiding & InteractionBuild a stealth horror experience with enemy AI, hiding mechanics, object interactions, and sound feedback. Includes ready-to-explore demo scenes and configurable gameplay scripts.Enemy AI: Waypoint patrols, gradual suspicion, player detection, chasing, and capture.Search and memory: Investigates sounds and last-known positions, including witnessed hiding locations.Hiding mechanics: Hide under beds or inside closed wardrobes.Object interaction: Pick up and throw objects using crosshair targeting.Interactive doors: Player-controlled doors with automatic enemy interaction.Sound feedback: Footsteps, door sounds, suspicion alerts, heartbeat, chase tension, and capture cues.Contextual HUD: Interaction prompts, awareness meter, and hiding status.First-person controls: Mouse look, walking, and sprinting.Atmospheric lighting: Configurable flickering lights.IncludedURP and Built-in Render Pipeline demo scenes.Enemy character and environment prefabs.Gameplay scripts and setup documentation.Ten replaceable synthesized starter audio clips.Patrol SystemSupports multiple waypointsEnemy visits each waypoint in sequenceWaits 2 seconds at each waypoint before moving to the nextPrevents immediate repetition of the same directionDetection SystemsField of View (Vision)The enemy detects the player using a configurable Field of View (FOV) system.Adjustable view radiusAdjustable view angleLine-of-sight checking to avoid detection through wallsDoor SystemAutomatic Door OpeningDoors automatically open based on the enemy’s approach direction (front or forward).Player Door InteractionYou can add any number of doors to the scenePlace the door mesh under a parent GameObjectEnsure the parent has zero rotation (0,0,0)If a door needs inverted movement:Hiding SystemThe player can hide under beds and inside berow to avoid enemy detection.Disables enemy vision when hiddenPlayer Capture & Look SystemWhen the enemy catches the player:Enemy and player smoothly rotate to face each otherEnsures the jump scare is always centered on screenPrevents missed or off-screen jump scaresFlickering Light SystemLights can flicker dynamically to increase tension and enhance the horror atmosphere.Can be triggered randomlyTechnical detailsTested in Unity 6000.3.9f1.Uses Unity AI Navigation and legacy keyboard/mouse input.Enemy movement requires a baked NavMesh.Built-in demo materials require the matching render pipeline.AI was used for documentation, code review, and creating simple audio clips.






