I'm trying to execute a function using a Button in Unity, but the dropdown menu for the funtions only shows me the default functions that all GameObjects have
I have created an empty GameObject that has the HighscoreList script and draged this object onto the onClick() Object selector, but I can't find any of the functions that I created
What the editor shows me:
The function im trying to call:
public void AddItem(int score, string name)
{
Node n = new Node(new HighscoreData(score, name));
start = start.addItem(n);
}



