Flying Piggy 2D Runner Kit  1.0
Complete 2D runner template for Unity
 All Classes Files Functions Variables Enumerations Enumerator Properties
Highscore Class Reference
Inheritance diagram for Highscore:
Score

Public Member Functions

 Highscore (GameData.ScoreId runScoreId)
 
override bool Increase (int n)
 

Properties

GameData.ScoreId RunScoreId [get, set]
 
- Properties inherited from Score
int Id [get, set]
 
int Value [get, set]
 
string Name [get, set]
 

Additional Inherited Members

- Protected Attributes inherited from Score
int id
 
int value
 
string name
 

Detailed Description

Observers a RunScore. If the value of the RunScore is higher than current value of the Highscore, the Highscore gets the new value.

Constructor & Destructor Documentation

Highscore.Highscore ( GameData.ScoreId  runScoreId)

Member Function Documentation

override bool Highscore.Increase ( int  n)
virtual

If the value of the RunScore is higher than current value of the Highscore, the Highscore gets the new value.

Reimplemented from Score.

Property Documentation

GameData.ScoreId Highscore.RunScoreId
getset

Get runScoreId


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