예제 #1
0
    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);
    }
예제 #2
0
 public void OnCancelClicked()
 {
     _context.Cancel();
     Teardown();
 }