shaoxiadiablo/Assets/AGame/Scripts/Command/ButtonClickCommand.cs
2025-06-23 00:44:29 +08:00

37 lines
1.0 KiB
C#

// ***********************************************************************
// Assembly : Game
// Author : Kimch
// Created : 2021-08-26
// Description : 记录点击事件
// Last Modified By :
// Last Modified On :
// ***********************************************************************
// <copyright file= "ButtonClickCommand" company="Kunpo"></copyright>
// <summary></summary>
// ***********************************************************************
using System.Collections;
using System.Collections.Generic;
using PureMVC.Interfaces;
using UnityEngine;
namespace G
{
/// <summary>
/// 按钮点击
/// </summary>
public class ButtonClickCommand : F.GameCommand
{
public override void Execute(INotification notification)
{
KStatistics.Instance.ReportButtonClick(notification.Type, notification.Body as string);
}
static readonly ButtonClickCommand _Default = new ButtonClickCommand();
public static ButtonClickCommand CreateCommand()
{
return _Default;
}
}
}