Beispiel #1
0
    public void EraseAllData()
    {
        PlayerPrefManagement.SetBestPhase(0, 1);

        for (int i = 2; i <= 5; i++)
        {
            PlayerPrefManagement.SetBestPhase(0, i);
            PlayerPrefManagement.LockPhase(i);
            PlayerPrefManagement.UnmarkUnlockTextShown(i);
        }
        LoadLevel("Menu");
    }
    void HandleFinalTime()
    {
        if (PlayerPrefManagement.GetBestPhase(phaseNum) == 0 ||
            PlayerPrefManagement.GetBestPhase(phaseNum) > rawTime)
        {
            PlayerPrefManagement.SetBestPhase(rawTime, phaseNum);
            bestTime = true;
        }

        if (bestTime)
        {
            recordText.text = "New Record!";
        }
        else
        {
            recordText.text = "";
        }
    }