Example #1
0
 private void Awake()
 {
     if (JSInstanse == null)
     {
         JSInstanse = this;
     }
 }
Example #2
0
    public void SaveData()
    {
        Debug.Assert(_initialized);

        string curTime = DateTime.Now.ToString();

        _playerData._lastSavedTime = curTime;

        JsonSaveSystem.SavePlayer(_playerData, _dataPath);
    }
Example #3
0
 public void LoadData()
 {
     Debug.Assert(_initialized);
     _playerData = JsonSaveSystem.LoadPlayer(_dataPath);
 }