void Awake()
        {
            if (Instance == null)
            {
                Instance = this;
            }
            else if (Instance != this)
            {
                Destroy(gameObject);
            }

            SetDbPath();
        }
Example #2
0
 private void CheckDB()
 {
     dbModel = (SQLiteItemDBModel)target;
     dbModel.SetDbPath();
     dbExist = File.Exists(dbModel.DB_FULL_PATH);
 }