FM/Assets/Scripts/Runtime/UI/EventArgs/AddCommodityToShoppingCartE...

28 lines
867 B
C#
Raw Normal View History

2025-07-10 23:16:27 +08:00
using HK;
using UnityEngine;
using ZGame;
namespace Runtime
{
public class AddCommodityToShoppingCartEventArgs : GameEventArgs
{
public static readonly int EventId = typeof(AddCommodityToShoppingCartEventArgs).GetHashCode();
public override int Id => EventId;
public Texture2D texture2D { get; }
public string productName { get; }
public int price { get; }
public AddCommodityToShoppingCartEventArgs(Texture2D texture2D, string productName, int price)
{
this.texture2D = texture2D;
this.productName = productName;
this.price = price;
}
}
public class ClearShoppingCartEventArgs : GameEventArgs
{
public static readonly int EventId = typeof(ClearShoppingCartEventArgs).GetHashCode();
public override int Id => EventId;
}
}