![]() |
Platformer Pro
2.3.2
A platform game kit for Unity.
|
Responds to power up collection by implementing the power. More...
Public Member Functions | |
virtual void | Init (Character character) |
Init this instance. More... | |
virtual bool | IsActive (string type) |
Determines whether the given power-up type is active. More... | |
virtual void | ResetPowerUp (PowerUpResponse resetResponse) |
Resets the power up with the given responses. More... | |
bool | Collect (string powerUpType) |
Collect the specified power up by type. More... | |
void | HardReset () |
Runs the 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 | |
PowerUpResponse | resetResponse |
The actions needed to hard reset the character back to starting state. More... | |
List< PowerUpResponse > | responses |
Details about the reponse this character has to a given power up. More... | |
bool | ignoreZeroValuedMultipliers = true |
Should we ignore zero valued modifiers in item settings. More... | |
Protected Member Functions | |
virtual void | OnPowerUp (string type, Character character) |
Raises the power up event. More... | |
virtual void | SetTimer (float time, PowerUpResponse resetResponse) |
Sets the power up timer. More... | |
virtual IEnumerator | DoResetAfterTime (float time, PowerUpResponse resetResponse) |
Does the listed power up reset after the given time. More... | |
virtual void | RecalculateEffectsOfItems () |
Updates multiplier stats. More... | |
![]() | |
virtual void | DoAction (EventResponse action, System.EventArgs args) |
Handles the event. More... | |
virtual IEnumerator | DoDelayedAction (EventResponse action, System.EventArgs args) |
Do the action after a delay. More... | |
virtual void | DoImmediateAction (EventResponse action, System.EventArgs args) |
Do the action More... | |
Character | GetCharacter (EventResponse action, System.EventArgs args) |
Gets a character reference from an action or event. More... | |
Protected Attributes | |
List< string > | activePowerUps |
The currently active power ups. More... | |
Character | character |
The cached character reference. More... | |
Dictionary< string, Coroutine > | resetActionMap |
Track power up resets so that If a power up will reset, but then another power up of the same time is collected we can cancel the reset. More... | |
float | totalJumpHeightMultiplier |
float | totalMoveSpeedMultiplier |
float | totalRunSpeedMultiplier |
float | totalAccelerationMultiplier |
int | totalMaxHealthAdjustment |
float | totalDamageMultiplier |
float | totalWeaponSpeedMultiplier |
Properties | |
virtual float | TotalJumpHeightMultiplier [get] |
Gets the total JumpHeightMultiplier of all equipped items, updated whenever items are equipped. More... | |
virtual float | TotalMoveSpeedMultiplier [get] |
Gets the total MoveSpeedMultiplier of all equipped items, updated whenever items are equipped. More... | |
virtual float | TotalRunSpeedMultiplier [get] |
Gets the total RunSpeedMultiplier of all equipped items, updated whenever items are equipped. More... | |
virtual float | TotalAccelerationMultiplier [get] |
Gets the total AccelerationMultiplier of all equipped items, updated whenever items are equipped. More... | |
virtual int | TotalMaxHealthAdjustment [get] |
Gets the total MaxHealthAdjustment of all equipped items, updated whenever items are equipped. More... | |
virtual float | TotalDamageMultiplier [get] |
Gets the total DamageMultiplier of all equipped items, updated whenever items are equipped. More... | |
virtual float | TotalWeaponSpeedMultiplier [get] |
Gets the total WeaponSpeedMultiplier of all equipped items, updated whenever items are equipped. More... | |
Character | Character [get, set] |
List< string > | ActivePowerUps [get] |
Gets the active power ups. Note this is not a copy. 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... | |
![]() | |
Character | Character [get, set] |
Get the character. More... | |
Events | |
System.EventHandler< ItemEventArgs > | PowerUp |
Event for powered up state changes. More... | |
Responds to power up collection by implementing the power.
bool PlatformerPro.PowerUpManager.Collect | ( | string | powerUpType | ) |
Collect the specified power up by type.
powerUpType | Power up type. |
|
protectedvirtual |
Does the listed power up reset after the given time.
time | The powers up lifetime. |
resetResponses | Which set of reset actions to run when the timer expires. |
void PlatformerPro.PowerUpManager.HardReset | ( | ) |
Runs the
|
virtual |
Init this instance.
|
virtual |
Determines whether the given power-up type is active.
true
if the given power-up type is active; otherwise, false
.type | Power up type. |
|
protectedvirtual |
Raises the power up event.
type | Type. |
character | Character. |
|
protectedvirtual |
Updates multiplier stats.
|
virtual |
Resets the power up with the given responses.
resetResponses | Which set of reset actions to run. |
|
protectedvirtual |
Sets the power up timer.
time | Time. |
resetResponses | Which set of reset actions to run when the timer expires. |
|
protected |
The currently active power ups.
|
protected |
The cached character reference.
bool PlatformerPro.PowerUpManager.ignoreZeroValuedMultipliers = true |
Should we ignore zero valued modifiers in item settings.
|
protected |
Track power up resets so that If a power up will reset, but then another power up of the same time is collected we can cancel the reset.
PowerUpResponse PlatformerPro.PowerUpManager.resetResponse |
The actions needed to hard reset the character back to starting state.
List<PowerUpResponse> PlatformerPro.PowerUpManager.responses |
Details about the reponse this character has to a given power up.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
get |
Gets the active power ups. Note this is not a copy.
The active power ups.
|
getset |
|
get |
Gets the total AccelerationMultiplier of all equipped items, updated whenever items are equipped.
|
get |
Gets the total DamageMultiplier of all equipped items, updated whenever items are equipped.
|
get |
Gets the total JumpHeightMultiplier of all equipped items, updated whenever items are equipped.
|
get |
Gets the total MaxHealthAdjustment of all equipped items, updated whenever items are equipped.
|
get |
Gets the total MoveSpeedMultiplier of all equipped items, updated whenever items are equipped.
|
get |
Gets the total RunSpeedMultiplier of all equipped items, updated whenever items are equipped.
|
get |
Gets the total WeaponSpeedMultiplier of all equipped items, updated whenever items are equipped.
System.EventHandler<ItemEventArgs> PlatformerPro.PowerUpManager.PowerUp |
Event for powered up state changes.