Net.Like.Xue.Tokyo/Assets/BITKit/Unity/Scripts/UX/Alert/Alerter.cs

31 lines
586 B
C#
Raw Normal View History

2024-11-03 16:42:23 +08:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace BITKit.UX.Internal
{
[System.Serializable]
public record Alert : AlertMessage
{
public void Execute()
{
BITKit.UX.Alert.Print(this);
}
}
}
namespace BITKit.UX
{
public class Alerter : MonoBehaviour
{
public AlertMessage message;
public void Excute()
{
Alert.Print(message);
}
public void Execute(string message)
{
Alert.Print("提示", message);
}
}
}