Exemple #1
0
    public void PlayerHitLetter(string letter)
    {
        audioSource.PlayOneShot(hitLetterClip);
        letterManager.HitLetter(letter);

        if (letterManager.IsLevelWordlistComplete())
        {
            targetSpeed = 0;
            playerAnimator.SetTrigger("stop");

            bgAnimator.SetTrigger("nextLvl");
        }
        else
        {
            GoNextDifficulty();
        }
    }