Пример #1
0
 public static void BindButtonInput(GameButtonID id, string axisName)
 {
     buttons[id] = new AxisButton(axisName);
     PlayerPrefs.SetString(savePref + id, axisName);
 }
Пример #2
0
 public static void BindButtonInput(GameButtonID id, KeyCode key)
 {
     buttons[id] = new KeyButton(key);
     PlayerPrefs.SetString(savePref + id, ((int)key).ToString());
 }
Пример #3
0
 public static bool GetButtonDown(GameButtonID id)
 {
     return(buttons[id].IsPressedDown());
 }