![]() |
Platformer Pro
2.3.2
A platform game kit for Unity.
|
A gravity which can be flipped. More...
Public Member Functions | |
virtual void | FlipGravity () |
Flips the gravity. More... | |
![]() | |
virtual void | Init (Character character) |
virtual void | ApplyGravity () |
Public Attributes | |
int | gravityFlipActionKey = -1 |
If > 0 then the player can flip gravity using the specified action key. More... | |
bool | flipCharacterImmediately |
Should the character be immediately rotated. More... | |
float | bumpSpriteInY |
Should we set the cahracters Y velocity to 0 on flip. More... | |
![]() | |
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 Member Functions | |
void | OnGravityFlipped () |
Raises the gravity flipped event. More... | |
Protected Attributes | |
bool | gravityIsFlipped |
Is the gravity flipped. More... | |
![]() | |
Character | character |
Cached reference to the character. More... | |
Properties | |
override bool | IsGravityFlipped [get] |
Gets a value indicating whether the gravity flipped. More... | |
![]() | |
virtual float? | Value [get] |
Gets the current value of gravity. More... | |
virtual bool | IsGravityFlipped [get] |
Gets a value indicating whether thegravity flipped. More... | |
Events | |
System.EventHandler< EmptyEventArgs > | GravityFlipped |
Event thrown when gravity flipped. More... | |
A gravity which can be flipped.
|
virtual |
Flips the gravity.
|
protected |
Raises the gravity flipped event.
float PlatformerPro.FlippableGravity.bumpSpriteInY |
Should we set the cahracters Y velocity to 0 on flip.
bool PlatformerPro.FlippableGravity.flipCharacterImmediately |
Should the character be immediately rotated.
int PlatformerPro.FlippableGravity.gravityFlipActionKey = -1 |
If > 0 then the player can flip gravity using the specified action key.
|
protected |
Is the gravity flipped.
|
get |
Gets a value indicating whether the gravity flipped.
System.EventHandler<EmptyEventArgs> PlatformerPro.FlippableGravity.GravityFlipped |
Event thrown when gravity flipped.