// Use this for initialization
    void Start()
    {
        score           = 0;
        scoreValue.text = score.ToString();

        keysValue.text = "0";

        healthBar.fillAmount = 1;
        healthBar.color      = Color.green;

        optionsPopup.Close();
        settingsPopup.Close();
        door3Popup.Close();
        gameOverScreen.Close();
    }
Beispiel #2
0
    // Use this for initialization
    void Start()
    {
        //close options pop-up on start of game
        settingsPopup.Close();
        optionsPopup.Close();
        doorPopup.Close();
        welcomeScreen.Open();

        score           = 0;
        scoreValue.text = score.ToString();

        _health = 5;
        healthBar.fillAmount = 1.0f;
        healthBar.color      = Color.green;

        gameOverScreen.Close();
    }