using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class DelegateTest : MonoBehaviour
{
public delegate void TestDelegate();
private TestDelegate testDelegate;
// Start is called before the first frame update
void Start()
{
testDelegate = MyDelegateFunc;
testDelegate();
}
// Update is called once per frame
void Update()
{
}
private void MyDelegateFunc()
{
Debug.Log("My DelegateFunc");
}
}