public void OnClick()
        {
            var @event = new StyleChangedEvent {
                Style = _style
            };

            _eventDispatcher.DispatchEvent(@event);
        }
Example #2
0
        public void OnClick()
        {
            var @event = new StyleChangedEvent {
                Style = _style
            };

            //here event is being fired to context and than to all of it's dependencies
            //and gameobjects that contains Injector
            _eventDispatcher.DispatchEvent(@event);
        }
Example #3
0
 public void SetEvent(StyleChangedEvent evt)
 {
     _newStyle = evt.Style;
 }
Example #4
0
 public void OnStyleChangedHandler(StyleChangedEvent @event)
 {
     SetupStyle(@event.Style);
 }