示例#1
0
        /// <summary>
        /// Updates the score and all of the
        /// awards that the player is earning.
        /// </summary>
        public void Update()
        {
            foreach (var award in Awards)
            {
                award.Update();
            }

            if (Awards.Count > 0 && Awards[0].Dead)
            {
                Score += Awards[0].Value;
                Awards.RemoveAt(0);
            }
        }