private void OnDisable() { CustomEvent <int> .RemoveListener(SomeMethod); }
public void InvokeIntEvent() { CustomEvent <int> .Invoke(5); }
/** * event SomeEvent = { * HelloWorld(); * SomeMethod(); * } */ private void OnEnable() { CustomEvent <int> .AddListener(SomeMethod); }