public void RemoveTexture() { if (cachedBeltSet == false) { cachedBelt = GetComponent <SgtBelt>(); cachedBeltSet = true; } if (cachedBelt.LightingTex == generatedTexture) { cachedBelt.LightingTex = null; cachedBelt.UpdateLightingTex(); } }
public void ApplyTexture() { if (cachedBeltSet == false) { cachedBelt = GetComponent <SgtBelt>(); cachedBeltSet = true; } if (cachedBelt.LightingTex != generatedTexture) { cachedBelt.LightingTex = generatedTexture; cachedBelt.UpdateLightingTex(); } }