Esempio n. 1
0
        private void OnEvent(object sender, EventC @event)
        {
            var args = @event.Arguments;
            var tick = args.Tick;

            Debug.Log($"{nameof(ListenerC)} received {@event} from {sender}: Tick={tick}");
        }
Esempio n. 2
0
        public void Tick()
        {
            _ticks++;

            if (_ticks % 10 == 0)
            {
                var args   = new EventC.Args(_ticks);
                var @event = new EventC(args);
                _eventBus.Emit(this, @event);
            }
        }