FIx the issue of end game screen appearing twice
This commit is contained in:
@@ -24,10 +24,11 @@ namespace UI
|
||||
if (canvasGroup == null)
|
||||
canvasGroup = gameObject.AddComponent<CanvasGroup>();
|
||||
|
||||
// Start invisible but keep the GameObject active so we can control visibility with alpha
|
||||
canvasGroup.alpha = 0f;
|
||||
canvasGroup.interactable = false;
|
||||
canvasGroup.blocksRaycasts = false;
|
||||
gameObject.SetActive(false);
|
||||
// Don't disable the GameObject - let UIPageController handle that
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user