예제 #1
0
    // changes default face to reflect your score
    IEnumerator displayReaction(float n)
    {
        yield return(new WaitForSeconds(n));

        appModel.turnOnMouseTracking();

        if (percentage >= 80)
        {
            appModel.setExpression("open eyes happy");
        }
        else if (percentage >= 60)
        {
            appModel.setExpression("judging");
        }
        else if (percentage >= 40)
        {
            appModel.setExpression("sad");
        }
        else
        {
            appModel.setExpression("angry");
        }

        //set body
        gc.updateQuestion();
        appModel.startIdleMotion();
    }