示例#1
0
    private IEnumerator GetKey()
    {
        GameManager.KeyBindsActive = false;
        while (waitingForKey)
        {
            yield return(null);
        }
        KeyBind effected = AltKey ? KeyBindings.AltReBind(selectedKey, newKey) : KeyBindings.ReBind(selectedKey, newKey);;

        selectedBtn.SetKeyText(newKey, AltKey);
        if (effected != null)
        {
            Affected?.Invoke(effected);
        }

        GameManager.KeyBindsActive = true;
    }