Exemplo n.º 1
0
 private void ProcessVumarkID(string vumarkID)
 {
     if (TextureManager.Instance.vumarkTextures.TryGetValue(vumarkID, out Texture2D tex))
     {
         texMapper.SetTexture(tex);
     }
     else
     {
         loader.SetActive(true);
         StartCoroutine(GetTexture(url + vumarkID + "/image", vumarkID));
     }
 }
Exemplo n.º 2
0
 private void Awake()
 {
     Instance  = this;
     texMapper = GetComponentInChildren <TextureMapper>();
     if (TextureManager.Instance.CurrentTextureToApply != null)
     {
         texMapper.SetTexture(TextureManager.Instance.CurrentTextureToApply);
     }
 }