Exemplo n.º 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);
        }
Exemplo n.º 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;
        }