public void RemovePrefabs(PreloadAssets assets) { if (assets != null) { for (int j = 0; j < assets.m_Assets.Count; j++) { var t = assets.m_Assets[j]; if (t != null) { RemovePrefab(t); } } } }
public void AddPrefabs(PreloadAssets assets) { if (assets != null) { for (int j = 0; j < assets.m_Assets.Count; j++) { var t = assets.m_Assets[j]; if (t != null) { AddPrefab(t, assets.m_CacheSize, assets.m_WarmUpNum); } } } }