示例#1
0
    public void buttonpressed()
    {
        if (badend)
        {
            SceneManager.LoadScene("badend");
        }
        foreach (Button b in ds.dialogButtons)
        {
            Destroy(b.gameObject);
        }

        ds.dialogButtons.Clear();
        ds.dialogIndex = nextDialog;
        ds.PlayDialogIndex(nextDialog);
    }