Exemplo n.º 1
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();
     }
 }