private void OnTriggerEnter2D(Collider2D collision) { if (collision.name.Equals("傳送門") || collision.tag.Equals("Finish")) { inPortal = true; gm.showMessage(true); } }