Files
Main/Assets/Code/Logic/MsgPrompt/MsgPromptInfo.cs

27 lines
680 B
C#
Raw Normal View History

2025-01-25 04:38:09 +08:00
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using Thousandto.Plugins.Common;
namespace Thousandto.Code.Logic
{
/// <summary>
/// 简单提示消息的数据
/// </summary>
public class MsgPromptInfo : MsgInfoBase
{
public MsgPromptInfo(string str = "", int type = 3, float time = 1, float delay = 1)
{
this.Msg = str;
this.ShowLifeTime = time;
}
//相等
public static bool Equal(MsgPromptInfo x, MsgPromptInfo y)
{
return string.Equals(x.Msg, y.Msg, System.StringComparison.Ordinal);
}
}
}