Restart UI-Button not working

Hello,
I’m trying to figure out how to make a restart UI-button, so when i click it with the mouse the scene restarts. I have tried following another thread but it didn’t really work for me. I have made a script and assigned it to the “On Click()” tab of the “Button”. I have also made a GameObject I call “RestartObject” and placed it as a child of the button and added the script to it.
Here’s the script, i tried adding a (if button “some-button” is pushed) and I got it working. But for some reason it won’t work when i try it with the UI.

using System.Collections;
using System.Collections.Generic;
using UnityEngine.SceneManagement;
using UnityEngine;

public class Restart : MonoBehaviour {

    // Use this for initialization
    void Start ()
    {
        ![112293-problem-with-ui.jpg|1920x995](upload://aOK8nX4hkFSHsqAR2JIV7BBmmY2.jpeg)
    }
	
	// Update is called once per frame
	public void RestartGame()
    {
        SceneManager.LoadScene(SceneManager.GetActiveScene().name);
    }
}

I appreciate all the help I can get, thanks in advance!

You aren’t selecting a function for the button.


And in the dropdown select Restart>RestartGame