private void ShowBottomButton(GameObject obj) { m_is_bottom_btn_show = !m_is_bottom_btn_show; EnableBottomButtons(false); if (m_is_bottom_btn_show) { EngineCoreEvents.AudioEvents.PlayAudio.SafeInvoke(Audio.AudioType.UISound, GameCustomAudioKey.main_ui_zhankai.ToString()); EngineCoreEvents.AudioEvents.PlayAudio.SafeInvoke(Audio.AudioType.UISound, GameCustomAudioKey.main_ui_extend.ToString()); m_entry_tog_show_tween_pos.ResetAndPlay(); m_entry_tog_tween_alpha.ResetAndPlay(); m_menuBtnTweener.ResetAndPlay(); } else { EngineCoreEvents.AudioEvents.PlayAudio.SafeInvoke(Audio.AudioType.UISound, GameCustomAudioKey.main_ui_shousuo.ToString()); m_entry_tog_show_tween_pos.PlayBackward(); m_entry_tog_tween_alpha.PlayBackward(); m_menuBtnTweener.PlayBackward(); } m_menuBtnTweener.SetTweenCompletedCallback(() => { if (HaveNotice()) { this.m_btnSwitchRedPointMark.Visible = !m_is_bottom_btn_show; } }); }