public void ResetGamePlays()
 {
     //PlayerPrefs.DeleteAll();
     smushEnabled = true;
     PlayerPrefs.SetString("smushEnabled", Convert.ToString(smushEnabled));
     hitWallsCostsPoints = true;
     PlayerPrefs.SetString("hitWallsCostsPoints", Convert.ToString(hitWallsCostsPoints));
     actionsCostPoints = false;
     PlayerPrefs.SetString("playerActionsCostPoints", Convert.ToString(actionsCostPoints));
     LevelManager.InitializateDevPanelValues(this);
     if (MaxTaps == 0)
     {
         MaxTaps = scoreManager.MaxTaps;
     }
     SetUpUI();
 }
        public void Init()
        {
            if (!PlayerPrefs.HasKey("smushEnabled"))
            {
                smushEnabled = false;
                PlayerPrefs.SetString("smushEnabled", Convert.ToString(smushEnabled));
            }
            else
            {
                smushEnabled = Convert.ToBoolean(PlayerPrefs.GetString("smushEnabled"));
            }

            if (!PlayerPrefs.HasKey("hitWallsCostsPoints"))
            {
                hitWallsCostsPoints = true;
                PlayerPrefs.SetString("hitWallsCostsPoints", Convert.ToString(hitWallsCostsPoints));
            }
            else
            {
                hitWallsCostsPoints = Convert.ToBoolean(PlayerPrefs.GetString("hitWallsCostsPoints"));
            }

            if (!PlayerPrefs.HasKey("playerActionsCostPoints"))
            {
                actionsCostPoints = false;
                PlayerPrefs.SetString("playerActionsCostPoints", Convert.ToString(actionsCostPoints));
            }
            else
            {
                actionsCostPoints = Convert.ToBoolean(PlayerPrefs.GetString("actionsCostPoints"));
            }

            if (!PlayerPrefs.HasKey("maxVelocity"))
            {
                maxVelocity = 3F;
                PlayerPrefs.SetFloat("maxVelocity", maxVelocity);
            }
            else
            {
                maxVelocity = PlayerPrefs.GetFloat("maxVelocity");
            }
            if (!PlayerPrefs.HasKey("ballMass"))
            {
                ballMass = 1f;
                PlayerPrefs.SetFloat("ballMass", ballMass);
            }
            else
            {
                ballMass = PlayerPrefs.GetFloat("ballMass");
            }
            if (!PlayerPrefs.HasKey("ballDrag"))
            {
                ballDrag = 0F;
                PlayerPrefs.SetFloat("ballDrag", ballDrag);
            }
            else
            {
                ballDrag = PlayerPrefs.GetFloat("ballDrag");
            }
            if (!PlayerPrefs.HasKey("minVelocity"))
            {
                minVelocity = 0.5F;
                PlayerPrefs.SetFloat("minVelocity", minVelocity);
            }
            else
            {
                minVelocity = PlayerPrefs.GetFloat("minVelocity");
            }
            ball = GameObject.Find("Ball");
            LevelManager.InitializateDevPanelValues(this);
            scoreManager = GameObject.Find("ScoreManager").GetComponent <ScoreManager>();

            if (MaxTaps == 0)
            {
                MaxTaps = scoreManager.MaxTaps;
            }
            SetUpUI();
        }