public void DisposeForRestart() { IoCManager.Resolve <IPlayerManager>().DetachAll(); EntityManager.Shutdown(); EntityManager = null; GC.Collect(); }