Example #1
0
        public static void ClearSkills()
        {
            PlayerSaveData data = _instance.playerData;

            PlayerPrefs.SetFloat(data.AccelerationSkill.Key, 0);
            PlayerPrefs.SetFloat(data.xCoinSkill.Key, 0);
            PlayerPrefs.SetFloat(data.SpeedSkill.Key, 0);
        }
Example #2
0
        public static void SaveAllData()
        {
            PlayerSaveData data = _instance.playerData;

            PlayerPrefs.SetFloat(data.AccelerationSkill.Key, data.AccelerationSkill.value);
            PlayerPrefs.SetFloat(data.xCoinSkill.Key, data.xCoinSkill.value);
            PlayerPrefs.SetFloat(data.SpeedSkill.Key, data.SpeedSkill.value);
            PlayerPrefs.SetString(data.Name.Key, data.Name.Name);
            PlayerPrefs.SetInt(data.Money.Key, data.Money.value);
            PlayerPrefs.SetInt(data.Tutorial.Key, data.Tutorial.value);
            PlayerPrefs.SetInt(data.GamesCount.Key, data.GamesCount.value);
        }