void OnTriggerEnter2D(Collider2D col) { if (col.gameObject.tag == "Player") { //messageDisplay.GetComponent<CanvasGroup>().alpha = 1; collision = true; messageTextObject.SetMessage(messageContents); // Destroy(gameObject); } }