using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
using ToneTuneToolkit.Common;
///
///
///
public class TEST : MonoBehaviour
{
private EventListener listenerTest = new EventListener();
private void Start()
{
listenerTest.OnValueChange += Test; // 发报纸给Test
}
private void OnDestroy()
{
listenerTest.OnValueChange -= Test; // 取消订阅
}
private void Test(int value)
{
Debug.Log(value);
}
public void GG()
{
listenerTest.Value += 1;
}
}