26 lines
572 B
C#
26 lines
572 B
C#
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;
|
|
}
|
|
}
|
|
}
|