static void Internal_CallUpdateFunctions()
 {
     if (update != null)
     {
         if (Profiler.enabled && !ProfilerDriver.deepProfiling)
         {
             var currentUpdateHash = update.GetHashCode();
             if (currentUpdateHash != m_UpdateHash)
             {
                 m_UpdateInvocationList = update.GetInvocationList();
                 m_UpdateHash           = currentUpdateHash;
             }
             foreach (var cb in m_UpdateInvocationList)
             {
                 var marker = new ProfilerMarker(cb.Method.Name);
                 marker.Begin();
                 cb.DynamicInvoke(null);
                 marker.End();
             }
         }
         else
         {
             update.Invoke();
         }
     }
 }
Esempio n. 2
0
 static void Internal_CallUpdateFunctions()
 {
     if (update != null)
     {
         var invocationList = update.GetInvocationList();
         foreach (var cb in invocationList)
         {
             var marker = new ProfilerMarker(cb.Method.Name);
             marker.Begin();
             cb.DynamicInvoke();
             marker.End();
         }
     }
 }