![]() |
Platformer Pro
2.3.2
A platform game kit for Unity.
|
Base class for all platformer cameras. More...
Public Member Functions | |
virtual void | Init () |
Initialise this instance. More... | |
virtual void | ChangeZone (CameraZone newZone, Character triggeringCharacter=null) |
Changes the zone by immediately snapping to the new zones position. More... | |
![]() | |
virtual void | Validate (PlatformerProMonoBehaviour myTarget) |
Override this method if you want to provide custom validation. The actual code should be surrounded by the if UNITY_EDITOR / endif directive. More... | |
Public Attributes | |
bool | isDefaultCamera |
Set to true if this is the default camera. More... | |
CameraZone | startingZone |
The starting zone. More... | |
System.EventHandler< CameraZoneChangeEventArgs > | CameraZoneChanged |
Event sent when the camera zone changes. This event is sent when the zone change starts. Add a handler to the tweener to listen to the zone change end for a change that is not instantaneous (or delay your event response). More... | |
Protected Member Functions | |
virtual void | OnCameraZoneChanged (CameraZone oldZone, CameraZone newZone) |
Send the Camera Zone changed event. More... | |
virtual void | DoDestroy () |
Do the destroy actions. More... | |
Static Protected Member Functions | |
static void | AddCamera (PlatformCamera platformCamera) |
Adds a camera to the global list. More... | |
static void | RemoveCamera (PlatformCamera platformCamera) |
Removes a camera from the global list. More... | |
static void | SetDefaultCamera () |
Sets the main camera. More... | |
Protected Attributes | |
CameraZone | currentZone |
The current zone. More... | |
Camera | myCamera |
Cached reference to the associated Unity camera. More... | |
Static Protected Attributes | |
static List< PlatformCamera > | allCameras |
A list of all camera. More... | |
static PlatformCamera | defaultCamera |
The main or default camera. More... | |
Properties | |
CameraZone | CurrentZone [get, set] |
Gets the current zone. More... | |
static PlatformCamera | DefaultCamera [get] |
Gets the default camera. More... | |
static PlatformCamera[] | AllCameras [get] |
Gets the default camera. More... | |
![]() | |
virtual string | Header [get] |
Gets the header string used to describe the component. More... | |
virtual string | DocLink [get] |
Gets a link to documentation site. More... | |
virtual string | VideoLink [get] |
Gets a link to a youtube video. More... | |
virtual string | Deprecated [get] |
If non-null this component is deprecated. The string shows a message indicating how it should be replaced. More... | |
Base class for all platformer cameras.
|
staticprotected |
Adds a camera to the global list.
platformCamera | Platform camera. |
|
virtual |
Changes the zone by immediately snapping to the new zones position.
newZone | The zone to move to. |
triggeringCharacter | Character that triggered the transition./param> |
Reimplemented in PlatformerPro.PlatformerProStandardCamera.
|
protectedvirtual |
Do the destroy actions.
Reimplemented in PlatformerPro.PlatformerProStandardCamera.
|
virtual |
Initialise this instance.
Reimplemented in PlatformerPro.PlatformerProStandardCamera.
|
protectedvirtual |
Send the Camera Zone changed event.
oldZone | |
newZone |
|
staticprotected |
Removes a camera from the global list.
platformCamera | Platform camera. |
|
staticprotected |
Sets the main camera.
|
staticprotected |
A list of all camera.
System.EventHandler<CameraZoneChangeEventArgs> PlatformerPro.PlatformCamera.CameraZoneChanged |
Event sent when the camera zone changes. This event is sent when the zone change starts. Add a handler to the tweener to listen to the zone change end for a change that is not instantaneous (or delay your event response).
|
protected |
The current zone.
|
staticprotected |
The main or default camera.
bool PlatformerPro.PlatformCamera.isDefaultCamera |
Set to true if this is the default camera.
|
protected |
Cached reference to the associated Unity camera.
CameraZone PlatformerPro.PlatformCamera.startingZone |
The starting zone.
|
staticget |
Gets the default camera.
|
getset |
Gets the current zone.
|
staticget |
Gets the default camera.