Esempio n. 1
0
    public void BirdReachedTargetPosition(Bird bird)
    {
        m_levelFinishedBirds.Add(bird);

        m_birdController.InitializeNextBird();
        SoundManager.GetInstance().PlayBirdFinishDessSfx();

        if (bird.m_id == 4)         // all birds reach target position level up
        {
            m_currentGameState = GameState.GameOver;
            m_uiController.ShowLevelUpText();               // t
            SoundManager.GetInstance().PlayGameWinSfx();
        }
    }