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

Arguments for a score event (i.e. when the score changes). More...

Inheritance diagram for PlatformerPro.ScoreEventArgs:

Public Member Functions

 ScoreEventArgs (string type)
 Initializes a new instance of the PlatformerPro.ScoreEventArgs class. More...
 
 ScoreEventArgs (int change, int current, string type)
 Initializes a new instance of the PlatformerPro.ScoreEventArgs class. More...
 
void UpdateScore (int change, int current)
 Updates the score event. More...
 

Properties

int Change [get, protected set]
 Gets or sets the change in score. More...
 
int Current [get, protected set]
 Gets or sets the level score. More...
 
string ScoreType [get, protected set]
 Identifier for the score type. More...
 

Detailed Description

Arguments for a score event (i.e. when the score changes).

Constructor & Destructor Documentation

◆ ScoreEventArgs() [1/2]

PlatformerPro.ScoreEventArgs.ScoreEventArgs ( string  type)

Initializes a new instance of the PlatformerPro.ScoreEventArgs class.

Parameters
typeType.

◆ ScoreEventArgs() [2/2]

PlatformerPro.ScoreEventArgs.ScoreEventArgs ( int  change,
int  current,
string  type 
)

Initializes a new instance of the PlatformerPro.ScoreEventArgs class.

Parameters
changeChange.
currentCurrent.
typeType.

Member Function Documentation

◆ UpdateScore()

void PlatformerPro.ScoreEventArgs.UpdateScore ( int  change,
int  current 
)

Updates the score event.

Parameters
changeChange.
currentCurrent value.

Property Documentation

◆ Change

int PlatformerPro.ScoreEventArgs.Change
getprotected set

Gets or sets the change in score.

The change.

◆ Current

int PlatformerPro.ScoreEventArgs.Current
getprotected set

Gets or sets the level score.

◆ ScoreType

string PlatformerPro.ScoreEventArgs.ScoreType
getprotected set

Identifier for the score type.


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