public static void SubscribeEvent(LevelEventType type, Action <int> action) { var specificEvent = _levelEvents?.FirstOrDefault(x => x.LevelEventType == type); specificEvent?.Subscribe(action); }
public static void InvokeEvent(LevelEventType type, int eventParams) { var specificEvent = _levelEvents?.FirstOrDefault(x => x.LevelEventType == type); specificEvent?.Invoke(eventParams); }