internal void AddNewItem(byte type, byte count, Vector3 position) { GameObject newItem = Instantiate(Items[type], position, Items[type].transform.rotation); newItem.transform.parent = transform; layingItem = newItem.GetComponent <LayingItem>(); layingItem.Type = type; layingItem.ItemsCount = count; layingItem._startType = type; layingItem._startItemsCount = count; }
public void RemoveInList(LayingItem item) => _layingItems.Remove(item);
public void AddInList(LayingItem item) => _layingItems.Add(item);