public void AddReciever(int x, int y, UI.Elements.GunCrafting.Reciever reciever) { if (x < 0 || y < 0 || x >= _slotGraph.GetLength(0) || y >= _slotGraph.GetLength(1)) { return; } _slotGraph[x, y].Recievers.Add(reciever); }
public void RemoveReciever(int x, int y, UI.Elements.GunCrafting.Reciever reciever) { if (x < 0 || y < 0 || x >= _slotGraph.GetLength(0) || y >= _slotGraph.GetLength(1)) { return; } if (_slotGraph[x, y].Recievers.Contains(reciever)) { _slotGraph[x, y].Recievers.Remove(reciever); } }