Пример #1
0
        void Awake()
        {
            if (Instance == null)
            {
                Instance = this;
            }
            else if (Instance != this)
            {
                Destroy(gameObject);
            }

            SetDbPath();
        }
Пример #2
0
 private void CheckDB()
 {
     dbModel = (SQLiteItemDBModel)target;
     dbModel.SetDbPath();
     dbExist = File.Exists(dbModel.DB_FULL_PATH);
 }