public void AddProjector(int x, int y, UI.Elements.GunCrafting.Projector projector) { if (x < 0 || y < 0 || x >= _slotGraph.GetLength(0) || y >= _slotGraph.GetLength(1)) { return; } _slotGraph[x, y].Projectors.Add(projector); }
public void RemoveProjector(int x, int y, UI.Elements.GunCrafting.Projector projector) { if (x < 0 || y < 0 || x >= _slotGraph.GetLength(0) || y >= _slotGraph.GetLength(1)) { return; } if (_slotGraph[x, y].Projectors.Contains(projector)) { _slotGraph[x, y].Projectors.Remove(projector); } }