protected override void OnHide() { ResetCameraAnimator(); ResetCharacterCreate(); if (m_scene_obj) { //m_scene_obj.gameObject.SetActive(false); // Destroy(m_scene_obj); if (m_Avater != null) { m_Avater.Destroy(); m_Avater = null; } Resources.UnloadUnusedAssets(); } }
protected override void OnHide() { ResetSelectRole(); if (m_scene_obj) { if (m_Avater != null) { m_Avater.Destroy(); m_Avater = null; } } Engine.IAudio audio = Engine.RareEngine.Instance().GetAudio(); if (audio != null) { audio.StopMusic(); } }