public override void OnInspectorGUI() { DrawDefaultInspector(); scoreboard myScript = (scoreboard)target; if (GUILayout.Button("Clear Scores")) { Highscores.Clear(); } if (GUILayout.Button("Add Rabndom Score")) { Highscores.Add("test" + Random.Range(0, 100).ToString(), Random.Range(10, 10000)); } }
public static void Clear(string segmentId = null) { Highscores.Clear(); }