void OnRecycleItemChanged(ItemObject item) { ClearMaterials(); if (item == null) { return; } Dictionary <int, int> getsList = m_Recycle.GetRecycleItems(); if (getsList != null) { foreach (KeyValuePair <int, int> kvp in getsList) { if (kvp.Value != 0) { AddMaterials(kvp.Key, kvp.Value, false); } } m_MatPart.m_Root.repositionNow = true; } }