public void Show(BallMonitor ball, bool isSuccess)
    {
        QUI.Show(this.gameObject);
        QUI.Hide(gameUI);

        if (isSuccess)
        {
            detail.text = $"{ball}";
            QUI.SetText("Title", "Moon Run!");
            QUI.SetButton("Restart", "Next Level", () =>
            {
                MoonShot.NextLevel();
                Hide();
                MoonShot.Reset();
            });
        }
        else
        {
            detail.text = $"{ball}";
            QUI.SetText("Title", "Moon Out!");
            QUI.SetButton("Restart", "Retry", () =>
            {
                Hide();
                MoonShot.Reset();
            });
        } //FURTHER TODO: moon foul

        Debug.Log($"result {ball}");
        ball.Reset();
    }
Exemple #2
0
 public void Show()
 {
     QUI.Show(this.gameObject);
 }
 public void Hide()
 {
     QUI.Show(gameUI);
     QUI.Hide(this.gameObject);
 }