Table of Contents

Method OpenMainMenu

Namespace
GrindFest
Assembly
GrindFest.dll

OpenMainMenu(float, int)

Open the main menu the way a player does - by pressing ESC.

The OneJS app registers handleEscape only after its first render, and a test can start before that on a fresh play session (game init is not the same thing as the JS app being up - e.g. an exception during GameManager.OnGameInitialized leaves the UI booting late). So this retries with a short wait instead of failing on that race.

This cannot mask the ESC bug these tests guard: a broken ESC stays broken no matter how often it is pressed, so the retry only ever helps a not-yet-ready app.

protected IEnumerator OpenMainMenu(float perAttempt = 3, int attempts = 6)

Parameters

perAttempt float
attempts int

Returns

IEnumerator