Class GameManager | Code Coverage | 0.3.1-preview
docs.unity3d.com
    Show / Hide Table of Contents

    Class GameManager

    Inheritance
    Object
    Object
    Component
    Behaviour
    MonoBehaviour
    GameManager
    Inherited Members
    MonoBehaviour.IsInvoking()
    MonoBehaviour.CancelInvoke()
    MonoBehaviour.Invoke(String, Single)
    MonoBehaviour.InvokeRepeating(String, Single, Single)
    MonoBehaviour.CancelInvoke(String)
    MonoBehaviour.IsInvoking(String)
    MonoBehaviour.StartCoroutine(String)
    MonoBehaviour.StartCoroutine(String, Object)
    MonoBehaviour.StartCoroutine(IEnumerator)
    MonoBehaviour.StopCoroutine(IEnumerator)
    MonoBehaviour.StopCoroutine(Coroutine)
    MonoBehaviour.StopCoroutine(String)
    MonoBehaviour.StopAllCoroutines()
    MonoBehaviour.print(Object)
    MonoBehaviour.useGUILayout
    MonoBehaviour.runInEditMode
    Behaviour.enabled
    Behaviour.isActiveAndEnabled
    Component.GetComponent(Type)
    Component.GetComponent<T>()
    Component.TryGetComponent(Type, Component)
    Component.TryGetComponent<T>(T)
    Component.GetComponent(String)
    Component.GetComponentInChildren(Type, Boolean)
    Component.GetComponentInChildren(Type)
    Component.GetComponentInChildren<T>(Boolean)
    Component.GetComponentInChildren<T>()
    Component.GetComponentsInChildren(Type, Boolean)
    Component.GetComponentsInChildren(Type)
    Component.GetComponentsInChildren<T>(Boolean)
    Component.GetComponentsInChildren<T>(Boolean, List<T>)
    Component.GetComponentsInChildren<T>()
    Component.GetComponentsInChildren<T>(List<T>)
    Component.GetComponentInParent(Type)
    Component.GetComponentInParent<T>()
    Component.GetComponentsInParent(Type, Boolean)
    Component.GetComponentsInParent(Type)
    Component.GetComponentsInParent<T>(Boolean)
    Component.GetComponentsInParent<T>(Boolean, List<T>)
    Component.GetComponentsInParent<T>()
    Component.GetComponents(Type)
    Component.GetComponents(Type, List<Component>)
    Component.GetComponents<T>(List<T>)
    Component.GetComponents<T>()
    Component.CompareTag(String)
    Component.SendMessageUpwards(String, Object, SendMessageOptions)
    Component.SendMessageUpwards(String, Object)
    Component.SendMessageUpwards(String)
    Component.SendMessageUpwards(String, SendMessageOptions)
    Component.SendMessage(String, Object)
    Component.SendMessage(String)
    Component.SendMessage(String, Object, SendMessageOptions)
    Component.SendMessage(String, SendMessageOptions)
    Component.BroadcastMessage(String, Object, SendMessageOptions)
    Component.BroadcastMessage(String, Object)
    Component.BroadcastMessage(String)
    Component.BroadcastMessage(String, SendMessageOptions)
    Component.transform
    Component.gameObject
    Component.tag
    Object.GetInstanceID()
    Object.GetHashCode()
    Object.Equals(Object)
    Object.Instantiate(Object, Vector3, Quaternion)
    Object.Instantiate(Object, Vector3, Quaternion, Transform)
    Object.Instantiate(Object)
    Object.Instantiate(Object, Transform)
    Object.Instantiate(Object, Transform, Boolean)
    Object.Instantiate<T>(T)
    Object.Instantiate<T>(T, Vector3, Quaternion)
    Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
    Object.Instantiate<T>(T, Transform)
    Object.Instantiate<T>(T, Transform, Boolean)
    Object.Destroy(Object, Single)
    Object.Destroy(Object)
    Object.DestroyImmediate(Object, Boolean)
    Object.DestroyImmediate(Object)
    Object.FindObjectsOfType(Type)
    Object.DontDestroyOnLoad(Object)
    Object.FindObjectsOfType<T>()
    Object.FindObjectOfType<T>()
    Object.FindObjectOfType(Type)
    Object.ToString()
    Object.name
    Object.hideFlags
    Namespace: Global Namespace
    Syntax
    public class GameManager : MonoBehaviour

    Fields

    asteroidPrefab

    Declaration
    public GameObject asteroidPrefab
    Field Value
    Type Description
    GameObject

    asteroidsEnabled

    Declaration
    public static bool asteroidsEnabled
    Field Value
    Type Description
    Boolean

    asteroidSpawnDelay

    Declaration
    [HideInInspector]
    public float asteroidSpawnDelay
    Field Value
    Type Description
    Single

    asteroidSpawnTimer

    Declaration
    [HideInInspector]
    public float asteroidSpawnTimer
    Field Value
    Type Description
    Single

    deaths

    Declaration
    [HideInInspector]
    public int deaths
    Field Value
    Type Description
    Int32

    effectsEnabled

    Declaration
    public static bool effectsEnabled
    Field Value
    Type Description
    Boolean

    instance

    Declaration
    public static GameManager instance
    Field Value
    Type Description
    GameManager

    RELOAD_SCENE_DELAY

    Declaration
    public const float RELOAD_SCENE_DELAY = 3F
    Field Value
    Type Description
    Single

    score

    Declaration
    public static int score
    Field Value
    Type Description
    Int32

    scoreSinceLastDeath

    Declaration
    public static int scoreSinceLastDeath
    Field Value
    Type Description
    Int32

    spaceship

    Declaration
    public static SpaceshipController spaceship
    Field Value
    Type Description
    SpaceshipController

    SPACESHIP_RESPAWN_DELAY

    Declaration
    public const float SPACESHIP_RESPAWN_DELAY = 1F
    Field Value
    Type Description
    Single

    spaceshipPrefab

    Declaration
    public GameObject spaceshipPrefab
    Field Value
    Type Description
    GameObject

    startEnabled

    Declaration
    public static bool startEnabled
    Field Value
    Type Description
    Boolean

    updateEnabled

    Declaration
    public static bool updateEnabled
    Field Value
    Type Description
    Boolean

    Properties

    IsPaused

    Declaration
    public static bool IsPaused { get; set; }
    Property Value
    Type Description
    Boolean

    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
    Type Name Description
    Boolean start
    Boolean update
    Boolean effects
    Boolean asteroids
    Boolean paused

    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
    Type Description
    IEnumerator

    SpaceshipIsActive()

    Declaration
    public static bool SpaceshipIsActive()
    Returns
    Type Description
    Boolean

    SpawnAsteroids()

    Declaration
    public void SpawnAsteroids()
    In This Article
    • Fields
      • asteroidPrefab
      • asteroidsEnabled
      • asteroidSpawnDelay
      • asteroidSpawnTimer
      • deaths
      • effectsEnabled
      • instance
      • RELOAD_SCENE_DELAY
      • score
      • scoreSinceLastDeath
      • spaceship
      • SPACESHIP_RESPAWN_DELAY
      • spaceshipPrefab
      • startEnabled
      • updateEnabled
    • Properties
      • IsPaused
    • Methods
      • AddToScore(Int32)
      • InitializeTestingEnvironment(Boolean, Boolean, Boolean, Boolean, Boolean)
      • RespawnShip(Single)
      • RespawnShipCoroutine(Single)
      • SpaceshipIsActive()
      • SpawnAsteroids()
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023