using System.
Collections;
using System.Collections.Generic;
using UnityEngine;
public class Disable : MonoBehaviour
{
[Header("Set this as the object you want to Disable.")]
public GameObject objectToDisable;
private void OnTriggerEnter(Collider other)
{
if (other.tag == "HandTag")
{
objectToDisable.SetActive(false);
}
}
}