_TheStrongestSnail/TheStrongestSnail/Assets/Scripts/lianghaoLL/AnnouncementTongzhi.cs

26 lines
572 B
C#
Raw Normal View History

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