Ignition / GameData

Namespace Playniax.Ignition

Script can be found in Assets/Playniax/Framework/Ignition/Framework/Core/Scripts/GameData.cs

Class GameData

Description

GameData is typically used to store statistics of the game temporarily per scene. It has has a number of built-in variables but custom fields can be added. The information will not be saved and is only avaiable at runtime.

Public fieldsDescription
static int bodyCountUsed by the spawners. It tells you the number of spawned objects that are destroyed.
static int progressUsed by the spawners. It tells you the game progress.
Config custom = new Config()Custom data storage. Supports floats, integers, booleans and strings. Have a look at the $Config$ class for more information.