MinimapCamera

Description
This script can be attached to a camera to provide some basic minimap functionality such as zooming and a full-screen toggle. It should be noted that this was developed to work in combination with a standard TPS view and AI pathfinder, so if you wish to use it in other contexts, it will require some tweaking.

Developed by stringbot. Feel free to update/improve/fix the code and add yourself to this line.

Usage
This script should be attached to a Camera GameObject. After this, the correct values need to be set in the inspector. You'll also need to configure two inputs: a "MinimapToggle" button and a "Mouse Wheel" axis.


 * Target: The object to track.
 * Scroll Sensitivity: How fast to move in and out whilst zooming.
 * Max Height: How high the camera can go above the target.
 * Min Height: The closest that the camera can get to the target.
 * Rotate With Target: Should the map rotate when the target does?

Bugs
None that I'm aware of. Feel free to correct me here!