Advertisement
Sylvir

test

May 21st, 2015
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.36 KB | None | 0 0
  1. void sell_0()
  2.     {
  3.         text.text = "What would you like to sell today?\n\n" +
  4.                     "1.Press F to sell one Fish \n\n" +
  5.                     "2.Press B to go Back to shop.";
  6.         if(Input.GetKeyDown(KeyCode.F)         
  7.         {
  8.             if(fish >=1)
  9.             {
  10.                 fish = fish -1;
  11.                 goldCoins = goldCoins + 5;
  12.             }
  13.             else
  14.             {
  15.             text.text = "You Dont have any fish to sell";
  16.             }
  17.         }
  18.        
  19.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement