public NetCodeTestWorld() { m_OldBootstrapState = ClientServerBootstrap.s_State; ClientServerBootstrap.s_State = default; m_DefaultWorld = new World("NetCodeTest"); m_ElapsedTime = 42; }
public NetCodeTestWorld() { #if UNITY_EDITOR // Not having a default world means RegisterUnloadOrPlayModeChangeShutdown has not been called which causes memory leaks DefaultWorldInitialization.DefaultLazyEditModeInitialize(); #endif _oldState = ClientServerBootstrap.SystemStates; DefaultWorld = new World("NetCodeTest"); }
public NetCodeTestWorld() { #if UNITY_EDITOR // Not having a default world means RegisterUnloadOrPlayModeChangeShutdown has not been called which causes memory leaks DefaultWorldInitialization.DefaultLazyEditModeInitialize(); #endif m_OldBootstrapState = ClientServerBootstrap.s_State; ClientServerBootstrap.s_State = default; m_DefaultWorld = new World("NetCodeTest"); m_ElapsedTime = 42; }