public virtual void Remove(int index, Game1 g)
 {
     objects[index].Destroy(g); objects.Remove(objects[index]);
 }
 // sets
 public void Add(GameObject obj, Game1 g)
 {
     objects.Add(obj); obj.Init(g);
 }
 public virtual void Remove(GameObject obj, Game1 g)
 {
     obj.Destroy(g); objects.Remove(obj);
 }
Beispiel #4
0
        /// <summary>
        /// The main entry point for the application.
        /// </summary>

        static void Main()
        {
            using (var game = new Game1())
                game.Run();
        }