private void OnDestroy() { if (m_id == 2) { GameObject _obj = (GameObject)GameManager.ResManager.LoadPrefabSync("Prefabs/TipPanel", "TipPanel3", typeof(GameObject)); _obj.transform.SetParent(GameManager.GameManagerObj.GetComponent <GameManager>().UILayer, false); } else if (m_id == 3) { GameObject _obj = (GameObject)GameManager.ResManager.LoadPrefabSync("Prefabs/TipPanel", "BackGround6", typeof(GameObject)); _obj.transform.SetParent(GameManager.GameManagerObj.GetComponent <GameManager>().UILayer, false); } else if (m_id == 4) { SceneModule _sceneModule = (SceneModule)GameManager.GameManagerObj.GetComponent <GameManager>().GetModuleByName("SceneModule"); _sceneModule.Loadweisheng(); } }