Example #1
0
        public void Register <TEvent>(Action <TEvent> onEvent)
        {
            var icanDispose = SingletonProperty <TConfig> .Instance.RegisterEvent <TEvent>(onEvent);

            mDisposableList.Add(icanDispose);
        }
Example #2
0
            public void Register <TEvent>(Action <TEvent> onEvent)
            {
                var icanDispose = mConfig.mEventSystem.RegisterEvent <TEvent>(onEvent);

                mDisposableList.Add(icanDispose);
            }