Ejemplo n.º 1
0
        protected override void DestoryObject()
        {
            GOEEntityMaterial matComponent = GetComponent <GOEEntityMaterial>();

            if (matComponent != null)
            {
                matComponent.OriginalShader();
                matComponent.ClearEffect();
                DelComponent(matComponent);
            }
            base.DestoryObject();
        }
Ejemplo n.º 2
0
        public void OriginalShader()
        {
            GOEEntityMaterial matComponent = GOEEntityComponent.Add <GOEEntityMaterial>(this);

            matComponent.OriginalShader();
        }