![]() |
Platformer Pro
2.3.2
A platform game kit for Unity.
|
Blows the character based on their distance from a trigger. WARNING: Supports only one character in range at a time. TODO: Update this to support multiplayer. More...
Public Attributes | |
Vector2 | acceleration |
The amount of acceleration applied. More... | |
float | fadeWithDistance |
If true the velocity is instantly set to acceleration instead of being applied as a change over time. More... | |
bool | instantlySetVelocity |
If true the velocity is instantly set to acceleration instead of being applied as a change over time. More... | |
Protected Member Functions | |
virtual void | Init () |
Init this instance. More... | |
virtual void | ApplyEffect () |
Do the affect to each character in range. More... | |
virtual void | HandleTriggerEntered (object sender, CharacterEventArgs args) |
Handles the trigger entered. More... | |
virtual void | HandleTriggerExited (object sender, CharacterEventArgs args) |
Handles the trigger exited. More... | |
Protected Attributes | |
Trigger | myTrigger |
My trigger. More... | |
List< Character > | affectedCharacters |
List of characters currently affected by this affector. More... | |
Blows the character based on their distance from a trigger. WARNING: Supports only one character in range at a time. TODO: Update this to support multiplayer.
|
protectedvirtual |
Do the affect to each character in range.
|
protectedvirtual |
Handles the trigger entered.
sender | Sender. |
args | Arguments. |
|
protectedvirtual |
Handles the trigger exited.
sender | Sender. |
args | Arguments. |
|
protectedvirtual |
Init this instance.
Vector2 PlatformerPro.WindAffector.acceleration |
The amount of acceleration applied.
|
protected |
List of characters currently affected by this affector.
float PlatformerPro.WindAffector.fadeWithDistance |
If true the velocity is instantly set to acceleration instead of being applied as a change over time.
bool PlatformerPro.WindAffector.instantlySetVelocity |
If true the velocity is instantly set to acceleration instead of being applied as a change over time.
|
protected |
My trigger.