Hello! How setup it?
Viewing post in Unity Flashlight Controller comments
Hi! Create an empty object, name it "FlashlightController", add the script component to it from this archive. Then add a spotlight object as a child to the FlashlightController object. Assign references in the script component if needed. Then place the FlashlightController object in the same position as your character's camera is (do not make it as a child of the camera or character, let it be by itself). Then in PlayMode, check if the Spotlight from the FlashlighController object is pointing to the right direction, if not - adjust its rotation while in PlayMode and when left from the PlayMode - assign the previous values to the Spotlight's local rotation. You can also tweak the position offset, if you like.