Example #1
0
 private void OnDisable()
 {
     CustomEvent <int> .RemoveListener(SomeMethod);
 }
Example #2
0
 public void InvokeIntEvent()
 {
     CustomEvent <int> .Invoke(5);
 }
Example #3
0
        /**
         *  event SomeEvent = {
         *          HelloWorld();
         *          SomeMethod();
         *  }
         */

        private void OnEnable()
        {
            CustomEvent <int> .AddListener(SomeMethod);
        }