Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Cut : MonoBehaviour
- {
- public GameObject[] weed = new GameObject[4];
- public Text Gramm;
- public int gr;
- public Text Hr;
- private int zero;
- public GameObject hand;
- public void OnCut()
- {
- zero = 0;
- Hr.text=zero + "";
- gr += 200;
- Gramm.text = gr + "";
- weed[0].SetActive(true);
- weed[2].SetActive(false);
- weed[3].SetActive(false);
- hand.SetActive(true);
- }
- }
Add Comment
Please, Sign In to add comment