MainMenu.razor
@using Sandbox;
@using Sandbox.UI;
@inherits PanelComponent

<root>
	<div class="main-menu">
		<h1>My Game</h1>
		<button onclick=@StartGame>Play</button>
		<button onclick=@QuitGame>Quit</button>
	</div>
</root>

@code {
	void StartGame()
	{
		Game.ActiveScene.LoadFromFile( "scenes/gameplay.scene" );
	}

	void QuitGame()
	{
		Game.Close();
	}
}