I am doing a menu in unity for the first time and I want to add the play button. However the button isn't working and I can't press it
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class StartButton : MonoBehaviour
{
public void Start()
{
SceneManager.LoadScene(SceneManager.GetActiveScene().name);
}
}