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

Defines a repsonse to an event. More...

Public Member Functions

 EventResponse ()
 Initializes a new instance of the PlatformerPro.EventResponse class. More...
 
 EventResponse (EventResponse original)
 Initializes a new instance of the PlatformerPro.EventResponse class by cloning another instance. More...
 
override bool Equals (object obj)
 Determines whether the specified System.Object is equal to the current PlatformerPro.EventResponse. More...
 
override int GetHashCode ()
 Serves as a hash function for a PlatformerPro.EventResponse object. More...
 

Public Attributes

EventResponseType responseType
 Type of response. More...
 
float delay
 How long to wait before handling the action. More...
 
GameObject targetGameObject
 The target game object. More...
 
Component targetComponent
 The target component. More...
 
ScriptableObject targetScriptableObject
 The target sciptable object. More...
 
string message
 The message for send message, or the song name, or the score type. More...
 
string overrideState
 The animation override state. More...
 
Sprite newSprite
 The new sprite to use. More...
 
AnimationState animationState
 The forced animation state. More...
 
int intValue
 Generic int value attached to the response. More...
 
Vector2 vectorValue
 Generic Vector value attached to the response. More...
 
bool boolValue
 Generic bool value. More...
 
float floatValue
 Generic float value attached to the response. More...
 
DamageType damageType
 Type of damage. More...
 

Detailed Description

Defines a repsonse to an event.

Constructor & Destructor Documentation

◆ EventResponse() [1/2]

PlatformerPro.EventResponse.EventResponse ( )

Initializes a new instance of the PlatformerPro.EventResponse class.

◆ EventResponse() [2/2]

PlatformerPro.EventResponse.EventResponse ( EventResponse  original)

Initializes a new instance of the PlatformerPro.EventResponse class by cloning another instance.

Parameters
originalOriginal.

Member Function Documentation

◆ Equals()

override bool PlatformerPro.EventResponse.Equals ( object  obj)

Determines whether the specified System.Object is equal to the current PlatformerPro.EventResponse.

Parameters
objThe System.Object to compare with the current PlatformerPro.EventResponse.
Returns
true if the specified System.Object is equal to the current PlatformerPro.EventResponse; otherwise, false.

◆ GetHashCode()

override int PlatformerPro.EventResponse.GetHashCode ( )

Serves as a hash function for a PlatformerPro.EventResponse object.

Returns
A hash code for this instance that is suitable for use in hashing algorithms and data structures such as a hash table.

Member Data Documentation

◆ animationState

AnimationState PlatformerPro.EventResponse.animationState

The forced animation state.

◆ boolValue

bool PlatformerPro.EventResponse.boolValue

Generic bool value.

◆ damageType

DamageType PlatformerPro.EventResponse.damageType

Type of damage.

◆ delay

float PlatformerPro.EventResponse.delay

How long to wait before handling the action.

◆ floatValue

float PlatformerPro.EventResponse.floatValue

Generic float value attached to the response.

◆ intValue

int PlatformerPro.EventResponse.intValue

Generic int value attached to the response.

◆ message

string PlatformerPro.EventResponse.message

The message for send message, or the song name, or the score type.

◆ newSprite

Sprite PlatformerPro.EventResponse.newSprite

The new sprite to use.

◆ overrideState

string PlatformerPro.EventResponse.overrideState

The animation override state.

◆ responseType

EventResponseType PlatformerPro.EventResponse.responseType

Type of response.

◆ targetComponent

Component PlatformerPro.EventResponse.targetComponent

The target component.

◆ targetGameObject

GameObject PlatformerPro.EventResponse.targetGameObject

The target game object.

◆ targetScriptableObject

ScriptableObject PlatformerPro.EventResponse.targetScriptableObject

The target sciptable object.

◆ vectorValue

Vector2 PlatformerPro.EventResponse.vectorValue

Generic Vector value attached to the response.


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