shaoxiadiablo/Assets/AGame/Scripts/Command/ShowToastCommand.cs

38 lines
1006 B
C#
Raw Normal View History

2025-05-18 01:04:31 +08:00
// ***********************************************************************
// Assembly : Game
// Author : Kimch
// Created : 2021-08-26
2025-06-23 00:44:29 +08:00
// Description : 显示tips弹窗用的
2025-05-18 01:04:31 +08:00
// Last Modified By :
// Last Modified On :
// ***********************************************************************
// <copyright file= "ToastCommand" company="Kunpo"></copyright>
// <summary></summary>
// ***********************************************************************
using System.Collections;
using System.Collections.Generic;
using PureMVC.Interfaces;
using UnityEngine;
namespace G
{
/// <summary>
/// Show Toast
/// </summary>
public class ShowToastCommand : F.GameCommand
{
public override void Execute(INotification notification)
{
if (notification.Body is string text)
UI.ToastBox.ShowText(text);
}
static readonly ShowToastCommand _Default = new ShowToastCommand();
public static ShowToastCommand CreateCommand()
{
return _Default;
}
}
}