31 lines
586 B
C#
31 lines
586 B
C#
|
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);
|
||
|
}
|
||
|
}
|
||
|
}
|