Hi, I need some help with one of my interaction scripts. I would like to know a way i can destroy a tagged item but without having to declare a GameObject variable. Below is the script i attached to my fps player camera. Code (CSharp): using System.Collections; using System.Collections.Generic; using UnityEngine; public class CollectItemSaphire : MonoBehaviour { public AudioClip[] CollectSound; public GameObject InteractIcon; public float interactDistance = 2.0f; void Update() { Ray ray = new Ray(transform.position, transform.forward); RaycastHit hit; if (Physics.Raycast(ray, out hit, interactDistance)) { if (hit.collider.CompareTag("ItemSaphire")) { InteractIcon.SetActive(true); if (Input.GetButtonDown("Interact")) { int r = Random.Range(1, CollectSound.Length); AudioSource.PlayClipAtPoint(CollectSound[r], transform.position); ScoringSystem.TheScoreSaphire += 1; //the code to destroy the game object i'm hitting with my ray goes here. } } } else { InteractIcon.SetActive(false); } } }