예제 #1
0
        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);
        }
예제 #2
0
        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);
            }
        }