예제 #1
0
        private void OnClick(PointerEventData eventData)
        {
            DialogsOuterClickEvent eventInstance = new DialogsOuterClickEvent {
                EventData = eventData
            };

            EngineService.Engine.ScheduleEvent(eventInstance, EngineService.EntityStub);
        }
예제 #2
0
        public void SendCancelEventToDialogs(DialogsOuterClickEvent e, Node node, [JoinAll] SingleNode <Dialogs60Component> dialogs)
        {
            IEnumerator enumerator = dialogs.component.transform.GetEnumerator();

            try
            {
                while (enumerator.MoveNext())
                {
                    Transform current = (Transform)enumerator.Current;
                    ExecuteEvents.Execute <ICancelHandler>(current.gameObject, e.EventData, ExecuteEvents.cancelHandler);
                }
            }
            finally
            {
                IDisposable disposable = enumerator as IDisposable;
                if (disposable != null)
                {
                    disposable.Dispose();
                }
            }
        }