public void ShutdownSceneMgr() { if (sceneMgr != null) { sceneMgr.Enqueue(new Action(() => { if (sceneMgr != null) { sceneMgr.CloseGame(); sceneMgr = null; } })); } }