public static SgtAuroraModel Create(SgtAurora aurora) { var model = SgtComponentPool <SgtAuroraModel> .Pop(aurora.transform, "Aurora Model", aurora.gameObject.layer); model.Aurora = aurora; return(model); }
public void RemoveTexture() { if (cachedAuroraSet == false) { cachedAurora = GetComponent <SgtAurora>(); cachedAuroraSet = true; } if (cachedAurora.NearTex == generatedTexture) { cachedAurora.NearTex = null; cachedAurora.UpdateNearTex(); } }
public void ApplyTexture() { if (cachedAuroraSet == false) { cachedAurora = GetComponent <SgtAurora>(); cachedAuroraSet = true; } if (cachedAurora.NearTex != generatedTexture) { cachedAurora.NearTex = generatedTexture; cachedAurora.UpdateNearTex(); } }