Ejemplo n.º 1
0
 void CreateNewDataBase()
 {
     // There is no overwrite protection here!
     // There is No "Are you sure you want to overwrite your existing object?" if it exists.
     // This should probably get a string from the user to create a new name and pass it ...
     db = CreateComboDataBase.Create(temp, db);
     if (db)
     {
         db.combos = new List <Combo>();
         string relPath = AssetDatabase.GetAssetPath(db);
         EditorPrefs.SetString("ObjectPath", relPath);
     }
     temp.combos = db.combos;
 }
Ejemplo n.º 2
0
 void SaveDataBase()
 {
     //save settings to database that's being edited rn
     db = CreateComboDataBase.Create(temp, db);
 }