public DataGameObject GameObject(DataGameObject node) { DataGameObject found = gameObjects.Find(d => d.Name == node.Name); if (found != null) { return(found); } else { gameObjects.Add(node); } return(node); }
public void Add(DataGameObject data) { gameObjects.Add(data); }
public bool Has(DataGameObject data) { return(gameObjects.Find(d => d.Name == data.Name) != null); }