Example #1
0
 private void YesTaskClick()
 {
     txtBox.dialogueText.text = "";
     txtBox.DisableDialogueBox();
     yesBtnObject.SetActive(false);
     noBtnObject.SetActive(false);
     SceneManager.LoadScene(Configuration.microphoneMinigameSceneName);
 }
Example #2
0
    /// <summary>
    /// Checks with dialgogue option has been selected
    /// </summary>
    /// <param name="b"> The button clicked </param>
    public void CheckClick(Button b)
    {
        txtBox.disableDialogueTap = false;
        choice1.gameObject.SetActive(false);
        choice2.gameObject.SetActive(false);
        switch (order)
        {
        case 0:
        {
            if (Button.ReferenceEquals(choice1, b))
            {
                trialDialogue(0);
            }

            else
            {
                txtBox.currentLine = 0;
                txtBox.DisableDialogueBox();
                return;
            }
            break;
        }

        case 1:
        {
            trialDialogue(1);
            break;
        }

        default:
        {
            break;
        }
        }
    }
Example #3
0
    /// <summary>
    /// Checks with dialgogue option has been selected
    /// </summary>
    /// <param name="b"> The button clicked </param>
    public void CheckClick(Button b)
    {
        txtBox.disableDialogueTap = false;
        choice1.gameObject.SetActive(false);
        choice2.gameObject.SetActive(false);
        switch (order)
        {
        case 0:
        {
            if (Button.ReferenceEquals(choice1, b))
            {
                /**
                 * //depending on the level
                 * if (inventory._items.Count == 3)
                 * {
                 *  trialDialogue(1);
                 *  submitButton.gameObject.SetActive(true);
                 * }**/

                trialDialogue(0);
            }

            else
            {
                txtBox.currentLine = 0;
                txtBox.DisableDialogueBox();
                return;
            }
            break;
        }

        case 1:
        {
            trialDialogue(1);
            break;
        }

        default:
        {
            break;
        }
        }
    }