public void ShowInGame(ConfirmationContext doesUserWantToQuit) { _onLeftButtonClick = () => { gameObject.SetActive(false); doesUserWantToQuit.Cancel(); }; leftButtonLabel.text = "OK"; leftButton.gameObject.SetActive(true); _onRightButtonClick = () => StartQuitConfirmFlow(doesUserWantToQuit); rightButtonLabel.text = "Quit"; rightButton.gameObject.SetActive(true); gameObject.SetActive(true); }
public void OnCancelClicked() { _context.Cancel(); Teardown(); }