示例#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();
            }
        }