Esempio n. 1
0
 private void Update()
 {
     for (int _index = 0; _index < m_iterationCount; _index++)
     {
         m_currentType = m_useRandType ? m_validTypes.Rand() : m_validTypes[0];
         if (m_useCache)
         {
             if (m_cacheCache)
             {
                 m_typeCache.GetAllComponents(m_currentType);
             }
             else
             {
                 m_target.Cache().GetAllComponents(m_currentType);
             }
         }
         else
         {
             m_target.GetComponents(m_currentType);
         }
     }
 }