BITFALL/Assets/BITKit/Unity/Scripts/UX/Alert/Alerter.cs

31 lines
595 B
C#
Raw Normal View History

2023-06-08 14:09:50 +08:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace BITKit.UX.Internal
{
[System.Serializable]
public record Alert : AlertMessage, IAction
{
2023-08-12 01:43:24 +08:00
public void Execute()
2023-06-08 14:09:50 +08:00
{
BITKit.UX.Alert.Print(this);
}
}
}
namespace BITKit.UX
{
public class Alerter : MonoBehaviour
{
public AlertMessage message;
public void Excute()
{
Alert.Print(message);
}
2023-10-02 23:24:56 +08:00
public void Execute(string message)
{
Alert.Print("提示", message);
}
2023-06-08 14:09:50 +08:00
}
}