33 lines
635 B
C#
Raw Normal View History

2021-03-29 09:10:59 +08:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;
2021-04-19 14:36:08 +08:00
using UnityEngine.UI;
2021-03-29 09:10:59 +08:00
namespace Assets.Scripts.UI.Control
{
2021-04-19 14:36:08 +08:00
[RequireComponent(typeof(Text))]
public class PFUIText : PFUIComponentBase
2021-03-29 09:10:59 +08:00
{
private Text text;
public string Text
{
get
{
return text.text;
}
set
{
text.text = value;
}
}
2021-04-19 14:36:08 +08:00
protected void Awake()
{
text = this.transform.GetComponent<Text>();
2021-04-19 14:36:08 +08:00
}
2021-03-29 09:10:59 +08:00
}
}