Пример #1
0
        public static void SubscribeEvent(LevelEventType type, Action <int> action)
        {
            var specificEvent = _levelEvents?.FirstOrDefault(x => x.LevelEventType == type);

            specificEvent?.Subscribe(action);
        }
Пример #2
0
        public static void InvokeEvent(LevelEventType type, int eventParams)
        {
            var specificEvent = _levelEvents?.FirstOrDefault(x => x.LevelEventType == type);

            specificEvent?.Invoke(eventParams);
        }