12345678910111213141516171819202122232425262728293031323334 |
- using System.Numerics;
- using Fort23.Core;
- using UnityEngine;
- namespace Fort23.Mono
- {
- [UIBinding(prefab = "TextWidget")]
- public partial class TextWidget : UIComponent
- {
- private void Init()
- {
- }
- public override void AddEvent()
- {
- }
- public override void DelEvent()
- {
- }
- public override void AddButtonEvent()
- {
-
- }
- public void ShowWidget(string text, Color Color)
- {
- this.text.text = text;
- this.text.color = Color;
- TimerComponent.Instance.AddTimer(1000, delegate { UIManager.Instance.DormancyGComponent(this); });
- }
- }
- }
|