Example #1
0
    public void SavePlayerData()
    {
        PlayerData playerData = dataAccess.GetPlayerData();

        playerData.sheepDatas = GameController.Instance.GetSavingSheepData();
        dataAccess.SavePlayerData(playerData);
    }
Example #2
0
 public void LoadData(System.Action <bool> loadDone)
 {
     //Using Local Interface
     dataAccess = new DataLocalAccess();
     dataAccess.LoadData();
     if (dataAccess.GetPlayerData().userPlayTime == 0)
     {
         CreateNewData();
     }
     if (loadDone != null)
     {
         loadDone(true);
     }
 }