public static void EnsureHavok(SystemBase system) { if (system.HasSingleton <PhysicsStep>()) { var component = system.GetSingleton <PhysicsStep>(); if (component.SimulationType != SimulationType.HavokPhysics) { component.SimulationType = SimulationType.HavokPhysics; system.SetSingleton(component); } system.Enabled = false; } }