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

Trigger event arguments. More...

Inheritance diagram for PlatformerPro.TriggerEventArgs:
PlatformerPro.CharacterEventArgs

Public Member Functions

 TriggerEventArgs (Trigger trigger, Character character, bool switchState)
 Initializes a new instance of the PlatformerPro.CharacterEventArgs class. More...
 
- Public Member Functions inherited from PlatformerPro.CharacterEventArgs
 CharacterEventArgs ()
 Initializes a new instance of the PlatformerPro.CharacterEventArgs class. More...
 
 CharacterEventArgs (Character character)
 Initializes a new instance of the PlatformerPro.CharacterEventArgs class. More...
 
 CharacterEventArgs (Character character, int playerId)
 Initializes a new instance of the PlatformerPro.CharacterEventArgs class. More...
 
void Update (Character character)
 Updates the event args with the given character More...
 

Properties

Trigger Trigger [get, protected set]
 Gets or sets the trigger. More...
 
bool SwitchState [get, protected set]
 Was the trigger not a switch (false), Switch in the off position (false), or switch in the On position (true). More...
 
- Properties inherited from PlatformerPro.CharacterEventArgs
Character Character [get, protected set]
 Gets or sets the character. More...
 
int PlayerId [get, protected set]
 What player number is this? More...
 

Detailed Description

Trigger event arguments.

Constructor & Destructor Documentation

◆ TriggerEventArgs()

PlatformerPro.TriggerEventArgs.TriggerEventArgs ( Trigger  trigger,
Character  character,
bool  switchState 
)

Initializes a new instance of the PlatformerPro.CharacterEventArgs class.

Parameters
characterCharacter.
switchStateIf the character is a switch is it on or off.

Property Documentation

◆ SwitchState

bool PlatformerPro.TriggerEventArgs.SwitchState
getprotected set

Was the trigger not a switch (false), Switch in the off position (false), or switch in the On position (true).

◆ Trigger

Trigger PlatformerPro.TriggerEventArgs.Trigger
getprotected set

Gets or sets the trigger.

The character.


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