Highroad Engine v1.3
|
Camera controller base class. Meant to be extended. More...
Public Types | |
enum | UpdateType { FixedUpdate , LateUpdate , Update } |
Define when camera movement is done. More... | |
Public Member Functions | |
abstract void | RefreshTargets () |
Override this method to refresh the list of targets. More... | |
Public Attributes | |
UpdateType | UpdateMode |
Transform[] | HumanPlayers |
List of human players. More... | |
Transform[] | BotPlayers |
List of bot players. More... | |
Protected Member Functions | |
virtual void | Awake () |
Initializes the camera gameobject More... | |
abstract void | CameraUpdate () |
Override this method to implement camera movement. More... | |
virtual void | Update () |
Unity Update More... | |
virtual void | LateUpdate () |
Unity LateUpdate More... | |
virtual void | FixedUpdate () |
Unity FixedUpdate More... | |
Protected Attributes | |
Camera | _camera |
Properties | |
abstract bool | IsSinglePlayerCamera [get] |
bool | GameHasStarted [getset] |
Gets or sets a value indicating whether this game has started. More... | |
Camera controller base class. Meant to be extended.
|
protectedvirtual |
Initializes the camera gameobject
|
protectedpure virtual |
Override this method to implement camera movement.
Implemented in MoreMountains.HighroadEngine.IsometricCameraController, MoreMountains.HighroadEngine.ParallelCamera, and MoreMountains.HighroadEngine.ThirdPersonCameraController.
|
protectedvirtual |
Unity FixedUpdate
|
protectedvirtual |
Unity LateUpdate
|
pure virtual |
Override this method to refresh the list of targets.
Implemented in MoreMountains.HighroadEngine.IsometricCameraController, MoreMountains.HighroadEngine.ParallelCamera, and MoreMountains.HighroadEngine.ThirdPersonCameraController.
|
protectedvirtual |
Unity Update
|
protected |
Transform [] MoreMountains.HighroadEngine.CameraController.BotPlayers |
List of bot players.
Transform [] MoreMountains.HighroadEngine.CameraController.HumanPlayers |
List of human players.
UpdateType MoreMountains.HighroadEngine.CameraController.UpdateMode |
|
getset |
Gets or sets a value indicating whether this game has started.
true
if game has started; otherwise, false
.
|
get |
If set to true, means this camera can only follow one vehicle. This value must be overrided by subclasses