C# Class LevelsTable, RoverGame

Inheritance: MonoBehaviour
Show file Open project: Stumpstump/RoverGame Class Usage Examples

Public Properties

Property Type Description
currentLevelID int
levelPrefab GameObject
levelsParent Transform
starOff Sprite
starOn Sprite
tableLevels List

Public Methods

Method Description
OnEnable ( ) : void

When the GameObject becomes visible

Private Methods

Method Description
Awake ( ) : void
CreateLevels ( ) : void

Creates the levels.

SettingUpLevel ( TableLevel, tableLevel, int ID ) : void

Settings up the level contents in the table.

Method Details

OnEnable() public method

When the GameObject becomes visible
public OnEnable ( ) : void
return void

Property Details

currentLevelID public static property

The current or selected level ID.
public static int currentLevelID
return int

levelPrefab public property

The level prefab.
public GameObject levelPrefab
return GameObject

levelsParent public property

The levels parent.
public Transform levelsParent
return Transform

starOff public property

The star off sprite.
public Sprite starOff
return Sprite

starOn public property

The star on sprite.
public Sprite starOn
return Sprite

tableLevels public static property

The table levels.
public static List tableLevels
return List