29 lines
893 B
C#
Raw Normal View History

2025-02-12 08:43:33 +08:00
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using ZXK.Framework;
/*******************************************************************************
*Create By CG
*Function _订阅者
*******************************************************************************/
namespace ZXK.Test
{
public class SubScriberCtrl : MonoBehaviour
{
//void Start()
//{
// EventCenterManager.Instance.AddEventListener(EventEnum.Test, TalkCall);
//}
//private void OnDestroy()
//{
// EventCenterManager.Instance.RemoveListener(EventEnum.Test, TalkCall);
//}
//public void TalkCall(object sender,EventArgs e)
//{
// MyEventArgs data = e as MyEventArgs;
// Debug.Log($"订阅者接收到{data._Name}的消息");
//}
}
}