Beispiel #1
0
    public void CycleDefaultControls(int dir)
    {
        controlsIndex += dir;

        if (controlsIndex < 0)
        {
            controlsIndex = defaultControlsCount - 1;
        }
        else if (controlsIndex >= defaultControlsCount)
        {
            controlsIndex = 0;
        }

        controlscheme.text = controlSchemes[controlsIndex];

        KeybindingController.SetControls(controlsIndex);

        foreach (KeybindButton kb in keybindButtons)
        {
            kb.SetKeybindText(KeybindingController.GetKeybindName(kb.Control));
        }
    }