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}"); }
public void Tick() { _ticks++; if (_ticks % 10 == 0) { var args = new EventC.Args(_ticks); var @event = new EventC(args); _eventBus.Emit(this, @event); } }