Ejemplo n.º 1
0
        //-----------------------------------------------------------------------------------
        public void OnGameEnd()
        {
            StatsProviderBase sp = Game.instance.stats;

            sp.GetConfig().m_nGamesPlayed++;
            //New score is not in hi score
            if (sp.GetNewScoreIndex(m_player.glass.score) < 0 || m_player.glass.score == 0)
            {
                GameMessage.Create(GetCanvas(), "Game Over", OnGameOver, 1.5f);
            }
            else
            {
                GameMessage.Create(GetCanvas(), "New High Score", OnHighScore, 1.5f);
            }
        }
Ejemplo n.º 2
0
        //-----------------------------------------------------------------------------------
        void OnGameEnd(bool bOther)
        {
            if (bOther)
            {
                GameMessage.Create(GetCanvas(), "You Won!", OnGameOver, 3.0f);
            }
            else
            {
                GameMessage.Create(GetCanvas(), "You Lost!", OnGameOver, 3.0f);
            }

            /*StatsProviderBase sp = Game.Instance.Stats;
             * sp.m_nGamesPlayed++;
             * //New score is not in hi score
             * if (sp.GetNewScoreIndex(m_ownerGlass.Score) < 0 || m_ownerGlass.Score == 0)
             * GameMessage.Create(GetCanvas(), "Game Over", OnGameOver, 1.5f);
             * else
             * GameMessage.Create(GetCanvas(), "New High Score", OnHighScore, 1.5f);*/
        }