

Attach this script to a camera and then you can use it RTS-style. Add the following code to the Start() method that was added for you by Unity when you created the script.

2 thoughts on “Making a RTS game #15: Adding a minimap and fog of war 3/3 (Unity/C#)” Karol Nowak Novemat 12:14 pm I followed everything, but nothing works unfortunely, can’t move camera by clicking on minimap correctly and I am not able to hide enemy units in explored fog of war :/ Don’t know what I am doing wrong.Three different camera modes, All fully customisable and establish different camera rules for different environments -Keyboard, mouse drag and edge screen Though most sources I’ve read around the internet say it’s not good, I managed to make it work.
