SetCost() публичный Метод

public SetCost ( string cost, bool enoughMoney ) : void
cost string
enoughMoney bool
Результат void
Пример #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);
	}