Example #1
0
    void Update()
    {
        Debug.Log(activeSpeakerUI.isTyping);

        //redunsant second if, but "eh"
        if (activeSpeakerUI != null)
        {
            if (Input.GetKeyDown("space") && activeDialogue)
            {
                AdvanceConversation();
            }
        }

        if (activeDialogue)
        {
            totalDelay -= Time.deltaTime;
            if (!activeSpeakerUI.CurrentlyTyping() && totalDelay <= 0)
            {
                AdvanceConversation();
            }
        }
    }