예제 #1
0
    public void EndGame()
    {
        Debug.Log(inpName.text + " " + playerScore + " " + timeAlive);
        //save score to xml file
        XMLManager.AddHighScore(inpName.text, playerScore, timeAlive);

        XMLManager.SaveScore();
        // go back to main menu
        GameManager.Instance.Prevlevel();
    }