Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void sell_0()
- {
- text.text = "What would you like to sell today?\n\n" +
- "1.Press F to sell one Fish \n\n" +
- "2.Press B to go Back to shop.";
- if(Input.GetKeyDown(KeyCode.F)
- {
- if(fish >=1)
- {
- fish = fish -1;
- goldCoins = goldCoins + 5;
- }
- else
- {
- text.text = "You Dont have any fish to sell";
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement