Example #1
0
    // Handle click event
    public override void HandleClick(string id, string value)
    {
        switch (id)
        {
        case "play":
            SceneSwitchR.To("GameScene");
            break;

        case "highscore":
            highscoreBoard.Show();
            break;

        default:
            break;
        }
    }
Example #2
0
    // Handle click event
    public override void HandleClick(string id, string value)
    {
        switch (id)
        {
        case "unpause":
            Time.timeScale        = 1;
            playerShip.allowInput = true;
            pauseMenu.SetActive(false);
            break;

        case "mainmenu":
            Time.timeScale = 1;
            SceneSwitchR.To("MainMenu");
            break;

        case "continue":
            shopDialog.Hide();
            ResetState();
            break;

        default:
            break;
        }
    }