// Methods public static DataService CreateGO() { GameObject dataServiceGO = new GameObject(); _dataService = dataServiceGO.AddComponent <DataService>(); dataServiceGO.name = "DataService"; _sqLiteService = dataServiceGO.AddComponent <SQLiteService>(); return(_dataService); }
/////////////////////////////////////////////////////////////////////////// // // Inherited from MonoBehaviour // void Awake() { Instance = this; path = UnityEngine.Application.persistentDataPath + DBFileLocation; taskQueue = new Queue <object>(); questionData = new SQLiteService_QuestionData(); tokenData = new SQLiteService_TokenData(); this.LoadLocalSQLite(); }
public SQLiteService_TokenData() { service = (SQLiteService)SQLiteService.Instance; }
public SQLiteService_QuestionData() { service = (SQLiteService)SQLiteService.Instance; }