![]() |
Platformer Pro
2.3.2
A platform game kit for Unity.
|
Use this component to do something when an event occurs. For example play a sound or particle effect. More...
Public Attributes | |
bool | loadedCharacters |
Listen to events from characters loaded in to the scene. More... | |
GameObject | sender |
Listen to only this game object. If its null listen to all. More... | |
string | typeName |
The name of the type to listen to (for example Enemy or Character). More... | |
string | eventName |
The name of the event to listen to. More... | |
EventResponse[] | actions |
What to do when the event is received. More... | |
AnimationState | animationStateFilter |
If the event is an animation change only trigger the event if this filter criteria is met. More... | |
DamageType | damageTypeFilter |
If the event is a damage or death only trigger the event if this filter criteria is met. More... | |
ButtonState | buttonStateFilter |
If the event is an button change only trigger the event if this filter criteria is met. More... | |
string | stringFilter |
If the event is an attack only trigger event if attack name matches this. More... | |
int | intFilter |
If the event is an integer event, or an item event with an amount. More... | |
int | altIntFilter = -1 |
If we need an additional int filter. More... | |
GamePhase | gamePhaseFilter = GamePhase.NONE |
If the event is an game phase change only trigger event if phase matches this. If it is any other event only apply if this == NONE or the game amanger GamePhase is equal to this. More... | |
Protected Member Functions | |
virtual void | Init () |
Initialise this responder. More... | |
virtual void | AddHandler (GameObject sendingGameObject) |
Adds the event handler. More... | |
virtual void | RemoveHandler () |
Removes the event handler. More... | |
virtual void | HandleEvent (object sender, System.EventArgs args) |
Handles the event. More... | |
virtual bool | ApplyFilters (EventResponse action, System.EventArgs args) |
Applies the filters. More... | |
override void | DoImmediateAction (EventResponse action, System.EventArgs args) |
Do the action 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... | |
Character | GetCharacter (EventResponse action, System.EventArgs args) |
Gets a character reference from an action or event. More... | |
Protected Attributes | |
System.Reflection.EventInfo | eventInfo |
Cached event info. More... | |
System.Delegate | handler |
Cached handler . More... | |
Component | sendingComponent |
Cached sending component. More... | |
float | handleTimer |
When this gets to zero do the action. More... | |
CustomEventFilter[] | customFilters |
Properties | |
override string | Header [get] |
override string | DocLink [get] |
![]() | |
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... | |
Additional Inherited Members | |
![]() | |
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... | |
Use this component to do something when an event occurs. For example play a sound or particle effect.
|
protectedvirtual |
Adds the event handler.
|
protectedvirtual |
Applies the filters.
true
, if filtering was passed, false
otherwise.action | Action. |
args | Arguments. |
|
protectedvirtual |
Do the action
args | Event arguments. |
action | Action. |
Reimplemented from PlatformerPro.GenericResponder.
|
protectedvirtual |
Handles the event.
sender | Sender. |
args | Arguments. |
|
protectedvirtual |
Initialise this responder.
|
protectedvirtual |
Removes the event handler.
EventResponse [] PlatformerPro.EventResponder.actions |
What to do when the event is received.
int PlatformerPro.EventResponder.altIntFilter = -1 |
If we need an additional int filter.
AnimationState PlatformerPro.EventResponder.animationStateFilter |
If the event is an animation change only trigger the event if this filter criteria is met.
ButtonState PlatformerPro.EventResponder.buttonStateFilter |
If the event is an button change only trigger the event if this filter criteria is met.
|
protected |
DamageType PlatformerPro.EventResponder.damageTypeFilter |
If the event is a damage or death only trigger the event if this filter criteria is met.
|
protected |
Cached event info.
string PlatformerPro.EventResponder.eventName |
The name of the event to listen to.
GamePhase PlatformerPro.EventResponder.gamePhaseFilter = GamePhase.NONE |
If the event is an game phase change only trigger event if phase matches this. If it is any other event only apply if this == NONE or the game amanger GamePhase is equal to this.
|
protected |
Cached handler .
|
protected |
When this gets to zero do the action.
int PlatformerPro.EventResponder.intFilter |
If the event is an integer event, or an item event with an amount.
bool PlatformerPro.EventResponder.loadedCharacters |
Listen to events from characters loaded in to the scene.
GameObject PlatformerPro.EventResponder.sender |
Listen to only this game object. If its null listen to all.
|
protected |
Cached sending component.
string PlatformerPro.EventResponder.stringFilter |
If the event is an attack only trigger event if attack name matches this.
string PlatformerPro.EventResponder.typeName |
|
get |
|
get |