/** * After instantiating the UI, this method must be called to dynamically supply the info to be displayed. */ public void Init(InfoScreenContent content) { _content = content; header.SetText(content.headerText); subHeader.SetText(content.subHeaderText); }
/** * Opens an info screen and pauses the game. * * @param content the content that shall be displayed by the info screen. */ public void Launch(InfoScreenContent content) { Launch(ui => ui.Init(content)); }