Exemple #1
0
    public void EndGame()
    {
        m_gcAudioManager.FadeMusicOutForGameOver();
        m_gcGameHud.OnHideHud();

        // Record High Scores if we have one, and what we achieved this time which the GameOver screen will pickup...
        if (m_bIsCecconoid)
        {
            GameGlobals.CheckCecconoidHighScore(m_gcPlayerState.m_iScore);
        }
        else
        {
            GameGlobals.CheckEugatronHighScore(m_gcPlayerState.m_iScore);
        }

        // Clean up the player by deleting it :D
        Destroy(m_goPlayerObjectReference);
        m_gcPlayerState      = null;
        m_gcPlayerController = null;
    }