예제 #1
0
    void CorrectAnswer()
    {
        countConsecutiveCorrect++;

        if (countConsecutiveCorrect % 15 == 0)
        {
            lives.AddLife();             // Adds a life if 15 in a row is achived
        }
        GMAudioSource.clip = correctAnswer;
        GMAudioSource.Play();

        GameObject[] KatakanaGOs = GameObject.FindGameObjectsWithTag("Katakana");
        foreach (GameObject go in KatakanaGOs)
        {
            Destroy(go);
        }

        // reset katakanaCallNum
        // reselect win katakana
        InstantiateRound();

        gameSetup.DrawKatakana();         // Disable all clickable components
    }