_xiaofang/xiaofang/Assets/Bitsplash/Modular Date Picker/TextMeshPro/Script/TextMediator.TextMeshPro.cs

24 lines
571 B
C#
Raw Normal View History

2024-11-29 16:19:12 +08:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Bitsplash.DatePicker
{
public partial class TextMediator
{
partial void MediateTextMeshProText(string text)
{
var tmp = GetComponent<TMPro.TextMeshProUGUI>();
if (tmp != null)
tmp.text = text;
}
partial void MediateTextMeshProColor(Color color)
{
var tmp = GetComponent<TMPro.TextMeshProUGUI>();
if (tmp != null)
tmp.color =color;
}
}
}