A downloadable asset pack

Download NowName your own price

This is a unity package for a flashlight graphic with detection features using raycast. This works great for games that has stealth mechanics.

The package includes:
-A sample scene where you can control a player character and roam the room so you can figure out how to apply the Detector script to other scripts :)
-3 C# Scripts (Player Script, Enemy Script and Detection Script)
-An enemy prefab and a Detector prefab

The detection script is responsible for the enemy detection mechanic and for generating the flashlight. It also contains instructions on how to edit the script to adapt it to your project.
The enemy script allows the enemies to patrol the room. They chase the player character and give up after not being able to see the player for a while.
The player script just allows you to move with WASD.

The detection script is completely customizable! :)

Thanks for checking the package out!

Download

Download NowName your own price

Click download now to get access to the following files:

FlashlightDetectionPackage.unitypackage 33 kB

Leave a comment

Log in with itch.io to leave a comment.