Esempio n. 1
0
    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;
            }
        }
    }
Esempio n. 2
0
 // Use this for initialization
 void Start()
 {
     // Wimprove
     instance = this;
 }
Esempio n. 3
0
 private void Start()
 {
     this.tooltipDisplayer = GameObject.FindObjectOfType <TooltipDisplayer>();
 }