コード例 #1
0
        public IEnumerator Start()
        {
            yield return(null);

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

            _eventBus.Emit(this, @event);
        }
コード例 #2
0
 private void OnEvent(object sender, EventB @event)
 {
     Debug.Log($"{nameof(ListenerB)} on {gameObject.name} received {@event} from {sender}");
 }