public static SgtAuroraModel Create(SgtAurora aurora)
        {
            var model = SgtComponentPool <SgtAuroraModel> .Pop(aurora.transform, "Aurora Model", aurora.gameObject.layer);

            model.Aurora = aurora;

            return(model);
        }
Example #2
0
        public void RemoveTexture()
        {
            if (cachedAuroraSet == false)
            {
                cachedAurora    = GetComponent <SgtAurora>();
                cachedAuroraSet = true;
            }

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

                cachedAurora.UpdateNearTex();
            }
        }
Example #3
0
        public void ApplyTexture()
        {
            if (cachedAuroraSet == false)
            {
                cachedAurora    = GetComponent <SgtAurora>();
                cachedAuroraSet = true;
            }

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

                cachedAurora.UpdateNearTex();
            }
        }