Esempio n. 1
0
    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));
        }
    }
Esempio n. 2
0
 public static void Clear(string segmentId = null)
 {
     Highscores.Clear();
 }