Class GameManager
Syntax
public class GameManager : MonoBehaviour
Fields
asteroidPrefab
Declaration
public GameObject asteroidPrefab
Field Value
asteroidsEnabled
Declaration
public static bool asteroidsEnabled
Field Value
asteroidSpawnDelay
Declaration
[HideInInspector]
public float asteroidSpawnDelay
Field Value
asteroidSpawnTimer
Declaration
[HideInInspector]
public float asteroidSpawnTimer
Field Value
deaths
Declaration
[HideInInspector]
public int deaths
Field Value
effectsEnabled
Declaration
public static bool effectsEnabled
Field Value
instance
Declaration
public static GameManager instance
Field Value
RELOAD_SCENE_DELAY
Declaration
public const float RELOAD_SCENE_DELAY = 3F
Field Value
score
Declaration
Field Value
scoreSinceLastDeath
Declaration
public static int scoreSinceLastDeath
Field Value
spaceship
Declaration
public static SpaceshipController spaceship
Field Value
SPACESHIP_RESPAWN_DELAY
Declaration
public const float SPACESHIP_RESPAWN_DELAY = 1F
Field Value
spaceshipPrefab
Declaration
public GameObject spaceshipPrefab
Field Value
startEnabled
Declaration
public static bool startEnabled
Field Value
updateEnabled
Declaration
public static bool updateEnabled
Field Value
Properties
IsPaused
Declaration
public static bool IsPaused { get; set; }
Property Value
Methods
AddToScore(Int32)
Declaration
public static void AddToScore(int splitCount)
Parameters
Type |
Name |
Description |
Int32 |
splitCount |
|
InitializeTestingEnvironment(Boolean, Boolean, Boolean, Boolean, Boolean)
Declaration
public static void InitializeTestingEnvironment(bool start, bool update, bool effects, bool asteroids, bool paused)
Parameters
RespawnShip(Single)
Declaration
public void RespawnShip(float delay = 1F)
Parameters
Type |
Name |
Description |
Single |
delay |
|
RespawnShipCoroutine(Single)
Declaration
public IEnumerator RespawnShipCoroutine(float delay)
Parameters
Type |
Name |
Description |
Single |
delay |
|
Returns
SpaceshipIsActive()
Declaration
public static bool SpaceshipIsActive()
Returns
SpawnAsteroids()
Declaration
public void SpawnAsteroids()