fix title menu buttons being visible too early

This commit is contained in:
_nebula 2023-03-09 16:38:30 +00:00
parent 0b039ce792
commit 88641573f8

View File

@ -438,8 +438,12 @@ internal class MenuManager : MonoBehaviour, IAddComponentOnStart
return;
}
var titleAnimationController = QSBWorldSync.GetUnityObject<TitleScreenManager>()._gfxController;
var activeAlpha = titleAnimationController.IsTitleAnimationComplete() ? 1 : 0;
button.SetActive(active);
button.GetComponent<CanvasGroup>().alpha = active ? 1 : 0;
button.GetComponent<CanvasGroup>().alpha = active ? activeAlpha : 0;
}
private void InitPauseMenus()