using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using SystemDebuger;
public class Test : MonoBehaviour {
public delegate void DelTest();
void Show(DelTest del)
{
if (del == null)
{
del();
}
else
{
Debuger.LogError("代理为空");
}
}
void ShowDel()
{
Debuger.Log("调用了事件代理");
}
}
using System.Collections.Generic;
using UnityEngine;
using SystemDebuger;
public class Test : MonoBehaviour {
public delegate void DelTest();
void Show(DelTest del)
{
if (del == null)
{
del();
}
else
{
Debuger.LogError("代理为空");
}
}
void ShowDel()
{
Debuger.Log("调用了事件代理");
}
}