public NetCodeTestWorld()
 {
     m_OldBootstrapState           = ClientServerBootstrap.s_State;
     ClientServerBootstrap.s_State = default;
     m_DefaultWorld = new World("NetCodeTest");
     m_ElapsedTime  = 42;
 }
Exemplo n.º 2
0
        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");
        }
Exemplo n.º 3
0
        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;
        }