Beispiel #1
0
        /// <summary>
        /// Tests the event handler.
        /// </summary>
        /// <param name="eventObj">The event object.</param>
        private void TestEventHandler(Events.Event eventObj)
        {
            EventExample example = GetComponent <EventExample>();

            example.RemoveEventListener(EventExample.TestEvent, TestEventHandler);
        }
Beispiel #2
0
        // Use this for initialization
        private void Start()
        {
            EventExample example = GetComponent <EventExample>();

            example.AddEventListener(EventExample.TestEvent, TestEventHandler);
        }