public void Initialize() { //Reference Lookup = GetComponent <KeyRemappingUILookup>(); sfxManager = SfxManager.instance; //Load keyscheme and update display KeyScheme.LoadKeycodesFromPlayerPrefs(); UpdateAllUiButtonText(); }
public void SaveAllKeybinds() { foreach (var b in bufferKeybind) { KeyScheme.SaveKeycodeToPlayerPrefs(b.Key, b.Value); //Lookup.GetBtnText(b.Key).text = Lookup.GetKeycode(b.Key).ToString(); } KeyScheme.LoadKeycodesFromPlayerPrefs(); }