Ejemplo n.º 1
0
    private void Update()
    {
        //For reseting data before built:
        if (Input.GetKeyDown(KeyCode.D))
        {
            PlayerPrefs.DeleteAll();
        }
        if (Input.GetKeyDown(KeyCode.A))
        {
            PlayerPrefs.SetInt("NumberOfGems", 2900);
            PlayerPrefs.SetInt("HighScore", 120);
        }
        if (Input.GetKeyDown(KeyCode.P))
        {
            Saver.Delete("GameData");
        }

        if (Input.GetKeyDown(KeyCode.L))
        {
            Saver.Delete("Phase 1");
            Saver.Delete("Phase 2");
        }

        //For countdown:
        if (countdown > 0 && reviveScreen.activeInHierarchy == true)
        {
            countdown         -= Time.deltaTime;
            countdownText.text = countdown.ToString("f0");
        }
    }
Ejemplo n.º 2
0
 private bool DeleteFavorite()
 {
     return(Saver.Delete(Data));
 }