mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-04 02:47:22 +00:00
fix title menu buttons being visible too early
This commit is contained in:
parent
0b039ce792
commit
88641573f8
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user