Example #1
0
        /// <summary>
        /// Constructor.
        /// </summary>
        public HighScoreMenuScreen()
            : base("High Score")
        {
            this.tankTextures	=	new List<Texture2D>();

            this.hs	=	new HighScore();
        }
Example #2
0
        public void SaveScore()
        {
            HighScore hs	=	new HighScore();

            List<Score> score	=	new List<Score>();

            score.Add(new Score("yellow", this.levelNumber, this.Score[0], DateTime.Now));
            if (this.PlayersCount == 2) { score.Add(new Score("green", this.levelNumber, this.Score[1], DateTime.Now)); }

            hs.SaveData(score.ToArray());
        }