Exemplo n.º 1
0
 // 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;
 }
Exemplo n.º 2
0
 // 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;
 }