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

public class Title : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{

}

// Update is called once per frame
void Update()
{
public void PushStartButton()
{
SceneManager.LoadScene("GameScene");
}
}
}

The modifier "public" is not valid for this item って出て何も進みません。
UnityではじめるC#というやつを読んで進めてるのですがどこがダメなんでしょうか。