ToolTipController.SetWarning C# (CSharp) 메소드

SetWarning() 공개 메소드

public SetWarning ( string warning ) : void
warning string
리턴 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);
	}