![]() |
BomberUnits
...a Unity learning project
|
Wraps all settings into one component, modifyable from the editor. More...
Inheritance diagram for GameSettings:
Collaboration diagram for GameSettings:Public Attributes | |
| bool | showDebugLog |
| int | maxClients |
| int | maxTotPlayers |
| int | maxLocPlayers |
| bool | showLabels |
| bool | randomizeSpawns |
| float | playerBombCooldown |
| int | playerInitBombRange |
| int | playerInitMaxBombs |
| int | playerInitLifePts |
| GameObject [] | playerFigures |
| The prefabs for instantiating different player models. | |
| InputScheme [] | playerInputSchemes |
| Axis names combined to input sets, set in scene editor. | |
| ColorScheme [] | playerColors |
| Colors selectable for players. | |
Protected Member Functions | |
| override void | MyAwake () |
| You may override this to have an Awake()-like function. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from MonoSingleton< GameSettings > | |
| static T | Get () |
| Singleton access. | |
Static Protected Attributes inherited from MonoSingleton< GameSettings > | |
| static T | instance |
| Singleton pattern instance. | |
Wraps all settings into one component, modifyable from the editor.
It follows the singleton pattern to not be instantiated twice and gives static access for ease of use from everywhere.
Definition at line 10 of file GameSettings.cs.
|
inlineprotectedvirtual |
You may override this to have an Awake()-like function.
Only called if this is the first instance as all further instances are destroyed.
Reimplemented from MonoSingleton< GameSettings >.
Definition at line 42 of file GameSettings.cs.