public void LoadCompanyImage(string companyID) { FirebaseStorageManager.GetFireBaseInstance().LoadImage(companyID, delegate(Sprite sprite) { placeHolder.SetActive(false); companyImage.gameObject.SetActive(true); companyImage.sprite = sprite; }); }
private void Awake() { if (Instance == null) { Instance = this; } DontDestroyOnLoad(gameObject); _storage = FirebaseStorage.DefaultInstance.RootReference; }
void Awake() { storage = FirebaseStorage.DefaultInstance; // Firebase.Storage.StorageReference storage_ref = // storage.GetReferenceFromUrl ("gs://appointmentproject-a7233.appspot.com"); // imagesReference = storage_ref.Child (ChildsReferences.CompanyImages.ToString ()); if (_instance == null) { _instance = this; } }