Пример #1
0
        /// <summary>
        /// Add a new meteor in the scene
        /// </summary>
        private Meteor AddNewMeteor()
        {
            Meteor newMeteor = new Meteor(Game, ref meteorTexture);

            newMeteor.Initialize();
            meteors.Add(newMeteor);
            // Set the meteor identifier
            newMeteor.Index = meteors.Count - 1;

            return(newMeteor);
        }
Пример #2
0
        /// <summary>
        /// Add a new meteor in the scene
        /// </summary>
        private Meteor AddNewMeteor()
        {
            Meteor newMeteor = new Meteor(Game, ref meteorTexture);
            newMeteor.Initialize();
            meteors.Add(newMeteor);
            // Set the meteor identifier
            newMeteor.Index = meteors.Count - 1;

            return newMeteor;
        }