private void CreateAndEnableFirebaseInstance() { FirebaseManager firebase = FindObjectOfType <FirebaseManager>() as FirebaseManager; if (firebase == null) { Instantiate(firebasePrefab); firebase = FindObjectOfType <FirebaseManager>() as FirebaseManager; } //delete database version player pref PlayerPrefs.DeleteKey("database_version"); firebase.CheckDatabaseVersion(); }