Пример #1
0
        public void RemoveTexture()
        {
            if (cachedStarfieldSet == false)
            {
                cachedStarfield    = GetComponent <SgtStarfield>();
                cachedStarfieldSet = true;
            }

            if (cachedStarfield.NearTex == generatedTexture)
            {
                cachedStarfield.NearTex = null;

                cachedStarfield.UpdateNearTex();
            }
        }
Пример #2
0
        public void ApplyTexture()
        {
            if (cachedStarfieldSet == false)
            {
                cachedStarfield    = GetComponent <SgtStarfield>();
                cachedStarfieldSet = true;
            }

            if (cachedStarfield.NearTex != generatedTexture)
            {
                cachedStarfield.NearTex = generatedTexture;

                cachedStarfield.UpdateNearTex();
            }
        }