Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
using SimpleSQL;
using UnityEngine;
using System.Collections;
using UnityEngine.Assertions;
//public class DatabaseManager : SingletonBehaviour<DatabaseManager>
public class DatabaseManager : MonoBehaviour
{
public static DatabaseManager i;
string _debugString;
void Awake()
{
#if UNITY_EDITOR
var editorPath = Application.persistentDataPath + "/Editor";
MasterData.overrideBasePath = editorPath;
MasterData.workingName = "MasterData_E";
MasterData.changeWorkingName = true;
MasterData.Initialize(true);
DynamicDB.overrideBasePath = editorPath;
DynamicDB.workingName = "DynamicDB_E";
DynamicDB.changeWorkingName = true;
DynamicDB.Initialize(true);
RosettaStone.overrideBasePath = editorPath;
RosettaStone.workingName = "RosettaStone_E";
RosettaStone.changeWorkingName = true;
RosettaStone.Initialize(true);
#endif
i = this;
}
public SimpleSQLManager MasterData;
public SimpleSQLManager DynamicDB;
public SimpleSQLManager RosettaStone;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.