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); }
public ComputerBuilder AddMemoryStick(MemoryStick memoryStick) { _memorySticks.Add(memoryStick); return(this); }