// Called by: ToolTipManager.SpendPoints() // Causes Item to transition to BoughtState() public void Purchase(int spend_amt) { ui_spend_amt.text = spend_amt.ToString(); // JF: Disable button ToolTip buttonImage.enabled = false; state = TTSpendPointsStates.BOUGHT; }
// Called by: ToolTipManager.DisplayPrice() // Causes Item to transition to DisplayState() public void Display(int spend_amt) { ui_spend_amt.text = spend_amt.ToString(); state = TTSpendPointsStates.DISPLAY; }