public static void BindKey(int id) { if (current != null) { Debug.Log("[BDArmory]: Tried to bind key but key binder is in use."); return; } current = new GameObject().AddComponent <BDKeyBinder>(); current.id = id; current.StartRecording(); }
public bool AcquireInputString(out string _inputString) { if (valid) { _inputString = inputString; current = null; Destroy(gameObject); return(true); } else { _inputString = string.Empty; return(false); } }