Пример #1
0
        public static SgtCoronaModel Create(SgtCorona corona)
        {
            var model = SgtComponentPool <SgtCoronaModel> .Pop(corona.transform, "Corona Model", corona.gameObject.layer);

            model.Corona = corona;

            return(model);
        }
Пример #2
0
        public void RemoveTextures()
        {
            if (cachedCoronaSet == false)
            {
                cachedCorona    = GetComponent <SgtCorona>();
                cachedCoronaSet = true;
            }

            if (cachedCorona.InnerDepthTex == generatedInnerTexture)
            {
                cachedCorona.InnerDepthTex = null;

                cachedCorona.UpdateInnerDepthTex();
            }

            if (cachedCorona.OuterDepthTex == generatedOuterTexture)
            {
                cachedCorona.OuterDepthTex = null;

                cachedCorona.UpdateOuterDepthTex();
            }
        }