Score.getBestScore C# (CSharp) Method

getBestScore() public method

public getBestScore ( ) : int
return int
    public int getBestScore()
    {
        return this.bestScore;
    }

Usage Example

    void LooseGame()
    {
        removeNextElements();

        GameObject.FindGameObjectWithTag("Elements").GetComponentInChildren <TextureShowHide>().cascadeDisapearing();

        score.saveIfBestScore();
        GameObject.FindGameObjectWithTag("Score").GetComponent <Text>().text = Score.getBestScore().ToString();

        GameObject.FindGameObjectWithTag("MenuController").GetComponent <Menu>().setActiveCanvas("MainCanvas");
        Destroy(gameObject);
    }
All Usage Examples Of Score::getBestScore