VR Development Framework
v 1.0.0
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
void AVR.UI.Utils.AVRUI_InputField_PlusMinus.decrease_value ( )
inline

Definition at line 46 of file AVRUI_InputField_PlusMinus.cs.

46  {
47  try {
48  if (input)
49  {
50  input.text = allowNegative ?
51  (float.Parse(input.text) - decrease_amount).ToString()
52  :
53  (Mathf.Max(0, float.Parse(input.text) - decrease_amount)).ToString();
54  }
55  else
56  {
57  input_tmp.text = allowNegative ?
58  (float.Parse(input_tmp.text) - decrease_amount).ToString()
59  :
60  (Mathf.Max(0, float.Parse(input_tmp.text) - decrease_amount)).ToString();
61  }
62  } catch(System.Exception) { }
63  }