Exemple #1
0
 public static void BindAxisInput(GameAxisID id, string axisName)
 {
     axes[id] = new AxisAxis(axisName);
     PlayerPrefs.SetString(savePref + id, axisName);
 }
Exemple #2
0
 public static void BindAxisInput(GameAxisID id, KeyCode positiveKey, KeyCode negativeKey)
 {
     axes[id] = new KeyAxis(positiveKey, negativeKey);
     PlayerPrefs.SetInt(savePref + id + "_Positive", (int)positiveKey);
     PlayerPrefs.SetInt(savePref + id + "_Negative", (int)negativeKey);
 }
Exemple #3
0
 public static float GetAxisRaw(GameAxisID id)
 {
     return(axes[id].GetAxisRaw());
 }