Exemplo n.º 1
0
    private void SetupInputs()
    {
        KeyBank t = axis == Axis.GAMEPAD ? gamepadBank : keyboardBank;

        //element count will ensure that no extra array spots get entered
        for (int i = 0; i < t.count; i++)
        {
            if (inputList.ContainsKey(t.keys[i]))
            {
                Debug.Log("Same key attempted to be added: " + t.keys[i]);
                continue;
            }

            inputList.Add(t.keys[i], t.keyCodes[i]);
        }
    }
Exemplo n.º 2
0
 private void OnEnable()
 {
     kb = (KeyBank)target;
 }