示例#1
0
文件: PriceTile.cs 项目: Cdrix/SM
 /// <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();
 }
示例#2
0
    /// <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();
    }