karen_constantine

Untitled

Apr 10th, 2023
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. if (other.gameObject.CompareTag("Coin"))
  2. {
  3. other.gameObject.SetActive(false);
  4. AudioSource audio = GetComponent<AudioSource>();
  5. audio.Play();
  6. }
  7.  
Advertisement
Add Comment
Please, Sign In to add comment