public override Graphic GetColoredVersion(Shader newShader, Color newColor, Color newColorTwo)
        {
            Graphic_LinkedCornerFiller graphic_LinkedCornerFiller = new Graphic_LinkedCornerFiller(subGraphic.GetColoredVersion(newShader, newColor, newColorTwo));

            graphic_LinkedCornerFiller.data = data;
            return(graphic_LinkedCornerFiller);
        }
        public static Graphic_Linked WrapLinked(Graphic subGraphic, LinkDrawerType linkDrawerType)
        {
            Graphic_Linked result;

            switch (linkDrawerType)
            {
            case LinkDrawerType.None:
                result = null;
                break;

            case LinkDrawerType.Basic:
                result = new Graphic_Linked(subGraphic);
                break;

            case LinkDrawerType.CornerFiller:
                result = new Graphic_LinkedCornerFiller(subGraphic);
                break;

            case LinkDrawerType.Transmitter:
                result = new Graphic_LinkedTransmitter(subGraphic);
                break;

            case LinkDrawerType.TransmitterOverlay:
                result = new Graphic_LinkedTransmitterOverlay(subGraphic);
                break;

            default:
                throw new ArgumentException();
            }
            return(result);
        }