private void OnInitializeUI() { Main = uiProvider.GetPanel <Main>("Main"); Endgame = uiProvider.GetPanel <Endgame>("Endgame"); Ingame = uiProvider.GetPanel <Ingame>("Ingame"); Main.Setup(new UIPanelParameter(localization) { ActionCallbacks = new Dictionary <string, Action> { { "Play", OnPlayCommand } } }); Endgame.Setup(new UIPanelParameter(localization) { ActionCallbacks = new Dictionary <string, Action> { { "Retry", OnRetry }, { "Next", OnNext } } }); Ingame.Setup(new UIPanelParameter(localization) { ActionCallbacks = new Dictionary <string, Action> { { "Pause", OnPause }, { "Success", () => OnIngameUIResult(true) }, { "Fail", () => OnIngameUIResult(false) } } }); Main.Open(); }