Guest User

Untitled

a guest
Nov 15th, 2018
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. public class Cut : MonoBehaviour
  2. {
  3. public GameObject[] weed = new GameObject[4];
  4. public Text Gramm;
  5. public int gr;
  6. public Text Hr;
  7. private int zero;
  8. public GameObject hand;
  9.  
  10. public void OnCut()
  11. {
  12. zero = 0;
  13. Hr.text=zero + "";
  14. gr += 200;
  15. Gramm.text = gr + "";
  16. weed[0].SetActive(true);
  17. weed[2].SetActive(false);
  18. weed[3].SetActive(false);
  19. hand.SetActive(true);
  20. }
  21. }
Add Comment
Please, Sign In to add comment