Exemplo n.º 1
0
 public void Remove(GameObject o)
 {
     removeObjects.Add(o);
     if (o is Entity)
         entitys.Remove((Entity)o);
     if (o is Health)
         healths.Remove((Health)o);
 }
Exemplo n.º 2
0
 public void AddGameObject(GameObject o)
 {
     gameObjects.Add(o);
     if (o is Entity)
         entitys.Add((Entity)o);
     if (o is Health)
         healths.Add((Health)o);
 }