void OnTriggerExit2D(Collider2D other) { if (!hasGone && triggerExit) { if (other.gameObject.tag == "Player") { objectToMove.GoBack(); if (oneTime) { hasGone = true; } } } }