Ejemplo n.º 1
0
    protected override IEnumerator ActionRoutine()
    {
        speakStartEvent.Invoke(_characterData, _text, parentConversation.conversationType);

        yield return(0f);

        while (true)
        {
            //set these up in playerinput
            if (_input.menuSubmit.triggered)
            {
                break;
            }
            //this doesn't f*****g work at all idiot
            if (_input.menuUp.triggered)
            {
                currentChoiceIndex--;
            }

            if (_input.menuDown.triggered)
            {
                currentChoiceIndex++;
            }

            currentChoiceIndex = ExtraMath.Modulus(currentChoiceIndex, _choiceList.Count);

            yield return(0f);
        }

        yield return(0f);

        yield return(StartCoroutine(base.ActionRoutine()));
    }