private void Start() { this.tooltipDisplayer = GameObject.FindObjectOfType <TooltipDisplayer>(); if (this.tooltipDisplayer == null) { Debug.LogWarning("Could not find TooltipDisplayer Component. Tooltip will not be visible."); } if (this.pullFromTextComponent) { Text textComponent = this.GetComponent <Text>(); if (textComponent != null) { this._text = textComponent.text; } } }
// Use this for initialization void Start() { // Wimprove instance = this; }
private void Start() { this.tooltipDisplayer = GameObject.FindObjectOfType <TooltipDisplayer>(); }