how to use triggers unity
void OnTriggerEnter(Collider other)
{
Debug.Log("Object Entered the trigger");
}
void OnTriggerStay(Collider other)
{
Debug.Log("Object is within the trigger");
}
void OnTriggerExit(Collider other)
{
Debug.Log("Object Exited the trigger");
}