Esempio n. 1
0
    public void LoadData()
    {
        PlayerPrefUtils.LoadValue(ref _last_updated_slot);

        for (int i = 0; i < Constants.num_upgrades; i++)
        {
            upgrades[i].LoadData();
        }

        for (int i = 0; i < Constants.num_upgrade_slots; i++)
        {
            slots[i].LoadData();
        }
    }
Esempio n. 2
0
    public void LoadData()
    {
        PlayerPrefUtils.LoadValue(ref _acum_chimney_enters);
        PlayerPrefUtils.LoadValue(ref _acum_fall_meters);
        PlayerPrefUtils.LoadValue(ref _acum_cookies);
        PlayerPrefUtils.LoadValue(ref _acum_daily_reward);
        PlayerPrefUtils.LoadValue(ref _acum_explosives);


        for (int i = 0; i < this.countAchievements; i++)
        {
            achievements[i].LoadData();
        }

        for (int i = 0; i < Constants.num_secret_buttons; i++)
        {
            secrets[i].LoadData();
        }
    }
Esempio n. 3
0
 public void LoadOrCreate()
 {
     if (!PlayerPrefUtils.HasKey(hasData.key))
     {
         PlayerPrefUtils.SetValue(true, ref hasData);
         this.userData.SetDefaults();
         this.missionsData.SetDefaults();
         this.optionsData.SetDefaults();
         this.upgradesData.SetDefaults();
         this.charactersData.SetDefaults();
     }
     else
     {
         this.userData.LoadData();
         this.missionsData.LoadData();
         this.optionsData.LoadData();
         this.upgradesData.LoadData();
         this.charactersData.LoadData();
     }
 }
Esempio n. 4
0
 public void SetDefaults()
 {
     PlayerPrefUtils.SetDefaultValue(ref _found);
 }
Esempio n. 5
0
 public void LoadData()
 {
     PlayerPrefUtils.LoadValue(ref _found);
 }
Esempio n. 6
0
 public void SetDefaults()
 {
     PlayerPrefUtils.SetDefaultValue(ref _status);
     PlayerPrefUtils.SetDefaultValue(ref _level);
 }
Esempio n. 7
0
 public void LoadData()
 {
     PlayerPrefUtils.LoadValue(ref _status);
     PlayerPrefUtils.LoadValue(ref _level);
 }
Esempio n. 8
0
 public void SetDefaults()
 {
     PlayerPrefUtils.SetDefaultValue(ref _id_mission);
     PlayerPrefUtils.SetDefaultValue(ref _complete);
 }
Esempio n. 9
0
 public void LoadData()
 {
     PlayerPrefUtils.LoadValue(ref _id_mission);
     PlayerPrefUtils.LoadValue(ref _complete);
 }
Esempio n. 10
0
 public void SetDefaults()
 {
     PlayerPrefUtils.SetDefaultValue(ref _slot_upgrade);
 }
Esempio n. 11
0
 public void LoadData()
 {
     PlayerPrefUtils.LoadValue(ref _slot_upgrade);
 }
Esempio n. 12
0
 public void SetDefaults()
 {
     PlayerPrefUtils.SetDefaultValue(ref _level);
     PlayerPrefUtils.SetDefaultValue(ref _complete);
     PlayerPrefUtils.SetDefaultValue(ref _collected);
 }
Esempio n. 13
0
 public void LoadData()
 {
     PlayerPrefUtils.LoadValue(ref _level);
     PlayerPrefUtils.LoadValue(ref _complete);
     PlayerPrefUtils.LoadValue(ref _collected);
 }