public void AddComponent(BoardComponent comp, Vector2 v) { bool b = components.Contains(comp); if(!b) { components.AddLast(comp); comp.AddToBoard(this, v); } }
//Remove comp from Board and the Board from the Component public void RemoveComponent(BoardComponent comp) { bool b = components.Contains(comp); if (b) { this.components.Remove(comp); comp.RemoveFromBoard(); } }