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

Definition at line 29 of file AVRUI_InputField_PlusMinus.cs.

29  {
30  try {
31  if(input) {
32  input.text = allowNegative ?
33  (float.Parse(input.text) + increase_amount).ToString()
34  :
35  (Mathf.Max(0, float.Parse(input.text) + increase_amount)).ToString();
36  }
37  else {
38  input_tmp.text = allowNegative ?
39  (float.Parse(input_tmp.text) + increase_amount).ToString()
40  :
41  (Mathf.Max(0, float.Parse(input_tmp.text) + increase_amount)).ToString();
42  }
43  } catch(System.Exception ) { }
44  }