Exemplo n.º 1
0
    // Update is called once per frame
    void Update()
    {
        if (dialogBackground.IsActive())
        {
            if (Input.GetMouseButtonDown(1))
            {
                if (dialogIndex + 1 < dialog.Length)
                {
                    dialogIndex++;
                    showDialog();
                }
                else
                {
                    dialogBackground.gameObject.SetActive(false);
                    input.DisableInput(false);
                }
            }
        }

    }