Base class for all paltforms.
More...
Inherits MonoBehaviour.
Inherited by BackAndForthPlatform, Brick, DecayingPlatform, FallingPlatform, KillBox, Ladder, PassthroughPlatform, RespawnPoint, Rope, SlidingPlatform, SlipperyPlatform, SpringboardPlatform, UnBreakableBrick, and UpAndDownPlatform.
|
| virtual void | DoStart () |
| | Override and add custom initialisation here. More...
|
| |
| virtual void | Move () |
| | Override with custom move code. More...
|
| |
| virtual void | DoUpdate () |
| | Override with custom update code here. More...
|
| |
|
|
Vector3 | velocity [get, set] |
| |
|
Transform | myTransform [get, set] |
| |
| virtual bool | overrideX [get] |
| | If you override and return true for this, your platform will stop the character moving in the x direction. Instead you will need to the move the character from your platform code. See the ropes classes as an example. More...
|
| |
| virtual bool | overrideY [get] |
| | If you override and return true for this, your platform will stop the character moving in the y direction. Instead you will need to the move the character from your platform code. See the ropes classes as an example. More...
|
| |
| virtual bool | overrideAnimation [get] |
| | If you override and return true for this, your platform will stop the character moving in the x direction. instead you will need to the move character. See the ropes classes as an example. More...
|
| |
Base class for all paltforms.
This is called when a platform is hit. Override to implement platform behaviour.
- Parameters
-
| collider | The collider that did the hitting. |
| character | The character that did the hitting. |
Reimplemented in RopeCollider, UnBreakableBrick, LadderCollider, DecayingPlatform, RespawnPoint, SlidingPlatform, SlipperyPlatform, KillBox, FallingPlatform, Brick, SpringboardPlatform, and PassthroughPlatform.
| virtual void Platform.DoStart |
( |
) | |
|
|
protectedvirtual |
| virtual void Platform.DoUpdate |
( |
) | |
|
|
protectedvirtual |
Gets the animation for the character. Only called if you have set overrideAnimation to true.
- Returns
- The animation state.
Reimplemented in RopeCollider.
| virtual void Platform.Move |
( |
) | |
|
|
protectedvirtual |
| virtual bool Platform.overrideAnimation |
|
get |
If you override and return true for this, your platform will stop the character moving in the x direction. instead you will need to the move character. See the ropes classes as an example.
| virtual bool Platform.overrideX |
|
get |
If you override and return true for this, your platform will stop the character moving in the x direction. Instead you will need to the move the character from your platform code. See the ropes classes as an example.
| virtual bool Platform.overrideY |
|
get |
If you override and return true for this, your platform will stop the character moving in the y direction. Instead you will need to the move the character from your platform code. See the ropes classes as an example.
The documentation for this class was generated from the following file:
- /Users/john/Desktop/PC3.5Test/Assets/2DPlatformController/Scripts/Plugins/Platform.cs