how to detect when a gameobject has exited a trigger c# code example
Example: how to detect when a gameobject has exited a trigger c#
//for 2D
//remeber to set your collider to trigger
//and to give the gameobject a rigidbody and collider of its own
private void OnTriggerExit2D(Collider2D collision)
{
}