Esempio n. 1
0
    void Start()
    {
        if (cursorLocking)
        {
            Cursor.visible = false;
            Screen.lockCursor = true;
        }

        health = maxHealth;

        //Get game stat initialization info
        if (GameObject.FindGameObjectWithTag("Properties") != null)
        {
            gameStats = GameObject.FindGameObjectWithTag("Properties").GetComponent<GameStats>();
            gameStats.AssignData();
        }

        //Get a ref to the boss (for cheat keys)
        if (GameObject.FindGameObjectWithTag("Boss") != null)
        {
            boss = GameObject.FindGameObjectWithTag("Boss").GetComponent<BossStats>();
        }

        SetPauseMenuRect();
    }