Exemple #1
0
    public static void OnGUI(string key, string label = null, Vector2 defaultValue = default(Vector2))
    {
        GUILayout.BeginHorizontal();
        GUILayout.Label(label ?? key);
        PlayerPrefs <float> .OnGUI(key + "x", "", defaultValue.x);

        PlayerPrefs <float> .OnGUI(key + "y", "", defaultValue.y);

        GUILayout.EndHorizontal();
    }
Exemple #2
0
 public void OnGUI(string label = null)
 {
     PlayerPrefs <T> .OnGUI(key, label, defaultValue);
 }