/// <summary> /// When leave Input fiield this is called from GUI /// </summary> public void SetNewPrice() { if (AddOrderWindow.IsTextAValidInt(_input.text)) { _prodSpec.Price = float.Parse(_input.text); } //else wont do anything just will reload last price Init(); }
/// <summary> /// When leave Input fiield this is called from GUI /// </summary> public void SetNewPrice() { if (AddOrderWindow.IsTextAValidInt(_input.text)) { _employ = int.Parse(_input.text); } if (WorkType == "Unemployed") { Update(); return; } //else wont do anything just will reload last price Init(); }