38 lines
983 B
C#
38 lines
983 B
C#
// ***********************************************************************
|
|
// Assembly : Game
|
|
// Author : Kimch
|
|
// Created : 2021-08-26
|
|
// Description :
|
|
// 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;
|
|
}
|
|
}
|
|
}
|