public static void BindButtonInput(GameButtonID id, string axisName) { buttons[id] = new AxisButton(axisName); PlayerPrefs.SetString(savePref + id, axisName); }
public static void BindButtonInput(GameButtonID id, KeyCode key) { buttons[id] = new KeyButton(key); PlayerPrefs.SetString(savePref + id, ((int)key).ToString()); }
public static bool GetButtonDown(GameButtonID id) { return(buttons[id].IsPressedDown()); }