DO-65 [Fix] 승리패널 나타날 때 배경 분리

This commit is contained in:
Jay 2025-03-27 10:01:28 +09:00
parent 171f28adb5
commit 677b3a0d9f
3 changed files with 13 additions and 1 deletions

View File

@ -867,7 +867,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 9b132148519758c42824252ec9a2d3a4, type: 3}
m_Name:
m_EditorClassIdentifier:
bannerObj: {fileID: 0}
bannerObj: {fileID: 7291411618834705046}
bannerText: {fileID: 5108301403921453943}
interval: 0.1
haloEffectImg: {fileID: 376994097320605198}

View File

@ -27,6 +27,16 @@ public class WinEffectController : EffectController
Invoke(nameof(PopupObject), 0.3f);
}
protected override void ShowPanel()
{
CanvasGroup canvasGroup = gameObject.GetComponent<CanvasGroup>() ?? gameObject.AddComponent<CanvasGroup>();
canvasGroup.alpha = 0f;
canvasGroup.DOFade(1f, 1f);
bannerObj.transform.DOScale(Vector3.zero, 0f);
bannerObj.transform.DOScale(Vector3.one, 1f);
}
private void RotateHaloObject()
{
// 무한 회전 효과

View File

@ -38,6 +38,8 @@ public class PanelManager : MonoBehaviour
}
Debug.Log($"총 {panelPrefabs.Count}개의 패널이 로드됨.");
OpenEffectPanel(Enums.GameResult.Win);
}
void SetCanvas()