Exemplo n.º 1
0
    float prevTimeScale;                                //A variable to contain the previous time scale


    void Start()
    {
        //Get references to the hands module and HMD
        hands      = GameManager.instance.hands;
        mainCamera = GameManager.instance.HMD;

        //If the game should start paused, pause the game
        if (startPaused)
        {
            TogglePaused(true);
        }
    }
Exemplo n.º 2
0
    //This method gets the reference to the various components if they don't already exist
    void InitializeReferences()
    {
        if (enemySpawner == null)
        {
            enemySpawner = GetComponent <GM_SpawnModule> ();
        }

        if (hands == null)
        {
            hands = GetComponent <GM_HandModule> ();
        }

        if (postEffects == null)
        {
            postEffects = GetComponent <GM_PostEffectModule> ();
        }
    }