Tanks Multiplayer
1.4
|
Camera script for following the player or a different target transform. Extended with ability to hide certain layers (e.g. UI) while in "follow mode". More...
Public Member Functions | |
void | HideMask (bool shouldHide) |
Culls the specified layers of 'respawnMask' by the camera. More... | |
Public Attributes | |
Transform | target |
The camera target to follow. Automatically picked up in LateUpdate(). More... | |
LayerMask | respawnMask |
Layers to hide after calling HideMask(). More... | |
float | distance = 10.0f |
The clamped distance in the x-z plane to the target. More... | |
float | height = 5.0f |
The clamped height the camera should be above the target. More... | |
Camera | cam |
Reference to the Camera component. More... | |
Transform | camTransform |
Reference to the camera Transform. More... | |
Camera script for following the player or a different target transform. Extended with ability to hide certain layers (e.g. UI) while in "follow mode".
void HideMask | ( | bool | shouldHide | ) |
Culls the specified layers of 'respawnMask' by the camera.
Camera cam |
Reference to the Camera component.
Transform camTransform |
Reference to the camera Transform.
float distance = 10.0f |
The clamped distance in the x-z plane to the target.
float height = 5.0f |
The clamped height the camera should be above the target.
LayerMask respawnMask |
Layers to hide after calling HideMask().
Transform target |
The camera target to follow. Automatically picked up in LateUpdate().