MagicGame Class |
Namespace: RavingBots.MagicGestures.Game
public class MagicGame : MonoSingleton<MagicGame>
The MagicGame type exposes the following members.
Name | Description | |
---|---|---|
EffectCount |
The number of configured spells.
| |
MagicEffectPools |
The pools of the spell effect objects.
|
Name | Description | |
---|---|---|
Awake |
Initialize the object pools.
(Overrides MonoSingletonTAwake.) | |
CreateMagicEffect |
Get a spell effect object.
| |
GetRandomEffectId |
Get a random spell index.
| |
LoadData |
Load the data from the ScriptableObject asset into
the game components.
| |
OnApplicationQuit |
Trigger an autosave if SaveOnQuit is set.
| |
Quit |
Quit the game.
| |
SaveData |
Save the current data into an asset.
| |
ShowWelcome |
Show the welcome screen after a delay (coroutine).
| |
Start |
Load the spell data and show the welcome screen.
| |
Update |
Name | Description | |
---|---|---|
GameData |
The prefab containing the network and configured gestures.
| |
MagicEffectPrefabs |
The spell effect prefabs.
| |
Precache |
The number of spell effect objects cached when a pool
is created.
| |
SaveOnQuit |
If , GameData will be saved
when the game quits.
|