TooltipManager.setVarsFromTooltipPanel C# (CSharp) Method

setVarsFromTooltipPanel() private static method

private static setVarsFromTooltipPanel ( TooltipType type ) : void
type TooltipType
return void
  private static void setVarsFromTooltipPanel(TooltipType type)
  {
    TooltipPanel panel;

    switch(type)
    {
      case TooltipType.BIOBRICK:
        panel = _instance.bioBrickTooltipPanel;
        break;
      case TooltipType.DEVICE:
        panel = _instance.deviceTooltipPanel;
        break;
      default:
        panel = _instance.bioBrickTooltipPanel;
        break;
    }
		
    _instance._tooltipPanel = panel.gameObject.GetComponent<UIPanel>();

    _instance._titleLabel = panel.titleLabel;
    _instance._typeLabel = panel.typeLabel;
    _instance._subtitleLabel = panel.subtitleLabel;
    _instance._illustrationSprite = panel.illustrationSprite;
    _instance._customFieldLabel = panel.customFieldLabel;
    _instance._customValueLabel = panel.customValueLabel;
    _instance._lengthValueLabel = panel.lengthValueLabel;
    _instance._referenceValueLabel = panel.referenceValueLabel;
    _instance._energyConsumptionValueLabel = panel.energyConsumptionValueLabel;
    _instance._explanationLabel = panel.explanationLabel;
    _instance._backgroundSprite = panel.backgroundSprite;
  }