Esempio n. 1
0
        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}");
        }
Esempio n. 2
0
        public IEnumerator Start()
        {
            yield return(null);

            var args   = new EventA.Args($"sent from {nameof(EmitterA)}");
            var @event = new EventA(args);

            _eventBus.Emit(this, @event);
        }