コード例 #1
0
 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);
             }
         }
     }
 }
コード例 #2
0
 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);
             }
         }
     }
 }