コード例 #1
0
    public void checkNote()
    {
        //play the note
        if (managerScript.getIsPlayable() == true)
        {
            note.Play();

            //check if is the correct note
            if (id == 0)
            {
                script.setIsHappy(true);
                isCorrect = true;
                //Debug.Log ("ACERTÔ MsISERAVI");
            }
            else
            {
                script.setIsSad(true);
                isCorrect = false;
                Debug.Log("EROOOOOU");
            }
        }
    }