Ejemplo n.º 1
0
        // Methods

        public static DataService CreateGO()
        {
            GameObject dataServiceGO = new GameObject();

            _dataService       = dataServiceGO.AddComponent <DataService>();
            dataServiceGO.name = "DataService";

            _sqLiteService = dataServiceGO.AddComponent <SQLiteService>();

            return(_dataService);
        }
Ejemplo n.º 2
0
        ///////////////////////////////////////////////////////////////////////////
        //
        // 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();
        }
Ejemplo n.º 3
0
 public SQLiteService_TokenData()
 {
     service = (SQLiteService)SQLiteService.Instance;
 }
 public SQLiteService_QuestionData()
 {
     service = (SQLiteService)SQLiteService.Instance;
 }