예제 #1
0
 void ButtonClicked(int buttonNo)
 {
     //Fertilizer
     if (Bucks.text - 20 > -1)
     {
         Bucks.text = Bucks.text - 20;
         Fcount.text++;
     }
     else
     {
         popup.close();
         MoneyPopup.open();
     }
 }
예제 #2
0
    void TaskWithParameters(string message)
    {
        //Water

        if (Bucks.text - 5 > -1)
        {
            Bucks.text = Bucks.text - 5;
            Wcount.text++;
        }
        else
        {
            popup.close();
            MoneyPopup.open();
        }
    }