ToolTipController.SetWarning C# (CSharp) Method

SetWarning() public method

public SetWarning ( string warning ) : void
warning string
return void
	public void SetWarning(string warning) {
		Warning.text = warning;
	}
}

Usage Example

コード例 #1
0
	public void OnPointerEnter(PointerEventData eventData) {
		GameObject go = Instantiate (TooltipPrefab) as GameObject;
		go.transform.SetParent (transform.parent, false);
		_tooltip = go.GetComponent<ToolTipController> ();
		_tooltip.Initialize (Title, Subtitle, Maintext);
		_tooltip = go.GetComponent<ToolTipController> ();
		_tooltip.SetCost (_cost, _hasEnoughMoney);

		if (_warning != "")
			_tooltip.SetWarning (_warning);
	}