fix reset camera show face when logout

This commit is contained in:
CuongNV
2026-05-07 17:29:15 +07:00
parent 496856930c
commit 02971cbb08
3 changed files with 44 additions and 0 deletions
+8
View File
@@ -53,6 +53,13 @@ namespace BrewMonster.UI
private void OnDisable()
{
_btnEnterGame.onClick.RemoveListener(OnClickedEnterGame);
if (_showModelReadyCoroutine != null)
{
StopCoroutine(_showModelReadyCoroutine);
_showModelReadyCoroutine = null;
}
_pendingShowModelRoleId = -1;
HostPlayerPortraitCapture.Instance?.ClearPortrait();
_selectingCharacterItemUI = null;
}
@@ -242,6 +249,7 @@ namespace BrewMonster.UI
private void OnClickedExit()
{
HostPlayerPortraitCapture.Instance?.ClearPortrait();
_onExit?.Invoke();
gameObject.SetActive(false);