コード例 #1
0
    void finishLevel()
    {
        soundManager.waterRun(false);
        String starsAchieved = levelTimer.numberOfStarsAcheived().ToString();
        float  timeTaken     = levelTimer.currentTimer();

        writeLevelCompletion(starsAchieved, timeTaken);
        PlayerPrefs.SetString("stars", starsAchieved);
        PlayerPrefs.SetFloat("time", timeTaken);
        SceneManager.LoadScene("Game Won");
    }