UI/Story/OutroUI.razor
@using Sandbox;
@using Sandbox.UI;
@inherits PanelComponent

<root>
    <img src="https://files.facepunch.com/tony/1b1011b1/uKlyTXC1j5.png" />
</root>

@code
{
    [Property] public SceneFile SceneFile { get; set; }

    async void AsyncMoveScene()
    {
        await GameTask.DelaySeconds( 10f );

        // Can this happen when stopping the game?
        if (!Game.ActiveScene.IsValid())
            return;

        Game.ActiveScene.Load( SceneFile );
    }

    public OutroUI()
    {
        AsyncMoveScene();
    }
}