A more feature rich UnityEvent
-
Add namespace
using BitByte;
-
Add Variable
public UnityEvent2[] unityEvent2;
-
Call Event using
unityEvent2.Invoke();
using UnityEngine;
using BitByte;
public class Example : MonoBehaviour {
public UnityEvent2[] unityEvent2;
void Awake() {
CallEvent();
}
public void CallEvent() {
unityEvent2.Invoke();
}
}