Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void OnTriggerEnter(Collider other)
- {
- if (other.gameObject.tag == "Paper")
- {
- Destroy(other.gameObject);
- Paper += 1;
- Console.WriteLine("A paper was picked up. Total papers = " + Paper);
- }
- if (Paper == 1) {
- anim.Play (anim.clip.name);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement