using System.Collections; using System.Collections.Generic; using BITKit; using UnityEngine; namespace BITFALL.Hotkey { [CustomType(typeof(IHotkeyCollection))] public class EntityHotkeyCollection : MonoBehaviour,IHotkeyCollection { public IEnumerable Hotkeys => _hotkeys; private readonly List _hotkeys = new(); public void Register(IHotkeyProvider hotkey)=>_hotkeys.TryAdd(hotkey); public void UnRegister(IHotkeyProvider hotkey)=>_hotkeys.TryRemove(hotkey); } }