internal void AssignPort(DisplayConduitPortInfo port)
 {
     this.type          = port.type;
     this.offset        = port.offset;
     this.offsetFlipped = port.offsetFlipped;
     this.input         = port.input;
     this.color         = port.color;
     this.sprite        = GetSprite();
 }
        public void AssignPort(GameObject go, DisplayConduitPortInfo port)
        {
            PortDisplay2 portDisplay = go.AddComponent <PortDisplay2>();

            portDisplay.AssignPort(port);

            switch (port.type)
            {
            case ConduitType.Gas:
                this.gasOverlay.Add(portDisplay);
                break;

            case ConduitType.Liquid:
                this.liquidOverlay.Add(portDisplay);
                break;

            case ConduitType.Solid:
                this.solidOverlay.Add(portDisplay);
                break;
            }
        }