private void OnEnable()
 {
     #region Attempts to load data from the ScriptableObject if it exists, if there is no create a new
     this.polyglot = AssetDatabase.LoadAssetAtPath <PolyglotSave>(this.GetSaveLocalPath());
     if (this.polyglot == null)
     {
         polyglot = CreateInstance <PolyglotSave> ();
         this.SaveChanges();
     }
     #endregion
 }
Exemple #2
0
 private void OnEnable()
 {
     #region Attempts to load data from the ScriptableObject if it exists, if there is no create a new
     this.polyglot = AssetDatabase.LoadAssetAtPath <PolyglotSave>(this.GetSaveLocalPath());
     #endregion
 }