Example #1
0
    private object SetOnOffShortcut(int keyCodeId)
    {
        OnOffHeld keyCode = (OnOffHeld)keyCodeId;

        _onOffShortcut          = keyCode;
        Constants.OnOffShortcut = _onOffShortcut;
        PlayerPrefHelper.SetOnOffShortcut(keyCode);
        _onOffShortcutData.text = keyCode.ToString().ToLower();
        return(true);
    }