Esempio n. 1
0
    IEnumerator ShowInputField(Dialogue.ResponseType responseType)
    {
        yield return(new WaitUntil(() => !textManager.IsAnimating()));

        yield return(new WaitUntil(() => !animatorManager.IsAnimating()));

        switch (responseType)
        {
        case Dialogue.ResponseType.FreeResponse:
            // if ResponseType.FreeResponse, set up input text field
            textManager.DisableDisplayInteractability();
            inputField.gameObject.SetActive(true);
            inputField.ActivateInputField();
            inputField.text = "";
            break;

        case Dialogue.ResponseType.MultipleChoice:
            // if ResponseType.MultipleChoice, set up multiple choices
            break;

        case Dialogue.ResponseType.None:
            // if ResponseType.None and no wait time (== -1f), set up continue button
            continueArrow.SetActive(true);
            break;
        }
    }