private void OnTriggerEnter2D(Collider2D collision) { if (collision.tag == "Player") { collision.transform.position = portal.transform.position; anim.SetTrigger("UsedPortal"); portal.StartCoroutine(portal.DisableTeleport(1f)); } }