private void OnEvent(object sender, EventA @event) { var args = @event.Arguments; var message = args.Message; Debug.Log($"{nameof(ListenerA)} on {gameObject.name} received {@event} from {sender}"); }
public IEnumerator Start() { yield return(null); var args = new EventA.Args($"sent from {nameof(EmitterA)}"); var @event = new EventA(args); _eventBus.Emit(this, @event); }