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(); } } }