// Update is called once per frame
    void Update()
    {
        if (state == 0)           // stopped

        {
        }
        if (state == 100)           // waiting for fadeout
        {
            if (!isWaitingForTaskToComplete)
            {
                state = 101;
            }
        }
        if (state == 101)
        {
            emocionarioCanvas.SetActive(false);
            //notifyFinishTask ();

            state = 0;
        }
        if (state == 200)           //  waiting for text to disappear
        {
            if (descriptionFader.getFadeValue() == 0.0f)
            {
                descriptionText.text = nextText;
                descriptionFader.fadeIn();
                timer = 0.0f;
                state = 0;
            }
        }
    }