예제 #1
0
    // Update is called once per frame
    void Update()
    {
        if (Input.GetKey(key))
        {
            answerText.color = highlightColor;
        }

        if (Input.GetKeyUp(key))
        {
            dialogueScript.GiveAnswer(answerNumber);
            answerText.color = defaultColor;
        }
    }