Пример #1
0
        public ComputerBuilder AddMemorySticks(MemoryStick memoryStick, int count)
        {
            for (int i = 0; i < count; i++)
            {
                if (_memorySticks.Count == _motherboard.MemorySlots)
                {
                    Debug.LogError($"[{GetType().Name}] Insufficient motherboard RAM slots");
                    return(this);
                }

                _memorySticks.Add(memoryStick);
            }

            return(this);
        }
Пример #2
0
 public ComputerBuilder AddMemoryStick(MemoryStick memoryStick)
 {
     _memorySticks.Add(memoryStick);
     return(this);
 }