![]() |
Platformer Pro
2.3.2
A platform game kit for Unity.
|
Applies the default gravity to the character. More...
Public Member Functions | |
virtual void | Init (Character character) |
virtual void | ApplyGravity () |
Public Attributes | |
bool | usePhysics2dGravity |
If true use the gravity value form the Physics 2D Project settings. More... | |
float | gravity = -20.0f |
The value of gravity for manual gravity type. More... | |
Protected Attributes | |
Character | character |
Cached reference to the character. More... | |
Properties | |
virtual float? | Value [get] |
Gets the current value of gravity. More... | |
virtual bool | IsGravityFlipped [get] |
Gets a value indicating whether thegravity flipped. More... | |
Applies the default gravity to the character.
|
virtual |
|
virtual |
|
protected |
Cached reference to the character.
float PlatformerPro.Gravity.gravity = -20.0f |
The value of gravity for manual gravity type.
bool PlatformerPro.Gravity.usePhysics2dGravity |
If true use the gravity value form the Physics 2D Project settings.
|
get |
Gets a value indicating whether thegravity flipped.
|
get |
Gets the current value of gravity.