/// <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); }
/// <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; }