using System.Collections; using System.Collections.Generic; using System.Diagnostics; using TMPro; using UnityEngine; using UnityEngine.UI; using Debug = UnityEngine.Debug; public class AnnouncementTongzhi : MonoBehaviour { private Announcement announcement; public RichText richText; public TextMeshProUGUI textMeshPro; public Announcement Announcement { [DebuggerStepThrough] get => announcement; [DebuggerStepThrough] set { announcement = value; Debug.Log(value.ToString()); richText.Text = value.content; textMeshPro.text = value.title; } } }