SetCost() public method

public SetCost ( string cost, bool enoughMoney ) : void
cost string
enoughMoney bool
return void
Esempio n. 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);
	}