karen_constantine

Untitled

Apr 10th, 2023
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4.  
  5. public class PickUpController : MonoBehaviour
  6. {
  7. private void OnTriggerEnter(Collider other)
  8. {
  9. if (other.gameObject.CompareTag("Player"))
  10. {
  11. Destroy(gameObject);
  12. }
  13. }
  14. }
  15.  
Advertisement
Add Comment
Please, Sign In to add comment