BITKit/Packages/Runtime~/Unity/Scripts/UX/Alert/Alerter.cs

26 lines
486 B
C#
Raw Normal View History

2023-06-05 19:57:17 +08:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace BITKit.UX.Internal
{
[System.Serializable]
public record Alert : AlertMessage, IAction
{
2023-06-29 14:57:11 +08:00
public void Execute()
2023-06-05 19:57:17 +08:00
{
BITKit.UX.Alert.Print(this);
}
}
}
namespace BITKit.UX
{
public class Alerter : MonoBehaviour
{
public AlertMessage message;
public void Excute()
{
Alert.Print(message);
}
}
}