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)); } }
private void Awake() { Instance = this; texMapper = GetComponentInChildren <TextureMapper>(); if (TextureManager.Instance.CurrentTextureToApply != null) { texMapper.SetTexture(TextureManager.Instance.CurrentTextureToApply); } }