public void LoadCompanyImage(string companyID)
 {
     FirebaseStorageManager.GetFireBaseInstance().LoadImage(companyID, delegate(Sprite sprite) {
         placeHolder.SetActive(false);
         companyImage.gameObject.SetActive(true);
         companyImage.sprite = sprite;
     });
 }
Example #2
0
    private void Awake()
    {
        if (Instance == null)
        {
            Instance = this;
        }

        DontDestroyOnLoad(gameObject);
        _storage = FirebaseStorage.DefaultInstance.RootReference;
    }
Example #3
0
    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;
        }
    }