Platformer Pro  2.3.2
A platform game kit for Unity.
PlatformerPro.GenericResponder Class Reference

Use this component to do something when an event occurs. This is a base class, and should be extended. More...

Inheritance diagram for PlatformerPro.GenericResponder:
PlatformerPro.PlatformerProMonoBehaviour PlatformerPro.Dialog.DialogResponder PlatformerPro.EventResponder PlatformerPro.PowerUpManager

Protected Member Functions

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...
 

Additional Inherited Members

- Public Member Functions inherited from PlatformerPro.PlatformerProMonoBehaviour
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...
 
- Properties inherited from PlatformerPro.PlatformerProMonoBehaviour
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...
 

Detailed Description

Use this component to do something when an event occurs. This is a base class, and should be extended.

Member Function Documentation

◆ DoAction()

virtual void PlatformerPro.GenericResponder.DoAction ( EventResponse  action,
System.EventArgs  args 
)
protectedvirtual

Handles the event.

Parameters
senderSender.
argsArguments.

◆ DoDelayedAction()

virtual IEnumerator PlatformerPro.GenericResponder.DoDelayedAction ( EventResponse  action,
System.EventArgs  args 
)
protectedvirtual

Do the action after a delay.

Parameters
argsEvent arguments.
actionAction.

◆ DoImmediateAction()

virtual void PlatformerPro.GenericResponder.DoImmediateAction ( EventResponse  action,
System.EventArgs  args 
)
protectedvirtual

Do the action

Parameters
argsEvent arguments.
actionAction.

Reimplemented in PlatformerPro.EventResponder.

◆ GetCharacter()

Character PlatformerPro.GenericResponder.GetCharacter ( EventResponse  action,
System.EventArgs  args 
)
protected

Gets a character reference from an action or event.

Returns
The character.
Parameters
actionAction.
argsEvent arguments.

The documentation for this class was generated from the following file: