internal void CreateInstance(World world)
        {
            OnBeforeCreateInternal(world);
            try
            {
#if (!NET_DOTS) && ENABLE_UNITY_COLLECTIONS_CHECKS
                CheckForObsoleteAPI();
#endif

#if !NET_DOTS
                OnCreateManager();
#endif

                OnCreateForCompiler();
                OnCreate();

#if ENABLE_PROFILER
                m_ProfilerMarker = new Profiling.ProfilerMarker($"{world.Name} {TypeManager.SystemName(GetType())}");
#endif
            }
            catch
            {
                OnBeforeDestroyInternal();
                OnAfterDestroyInternal();
                throw;
            }
        }
 internal void CreateInstance(World world)
 {
     OnBeforeCreateInternal(world);
     try
     {
         OnCreateForCompiler();
         OnCreate();
 #if ENABLE_PROFILER
         m_ProfilerMarker = new Profiling.ProfilerMarker($"{world.Name} {TypeManager.GetSystemName(GetType())}");
 #endif
     }
     catch
     {
         OnBeforeDestroyInternal();
         OnAfterDestroyInternal();
         throw;
     }
 }