예제 #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();
    }