Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
            }
        }