Merge pull request #63 from Degulleo/DO-65-승리-패널-나타나는-효과-배경-분리-필요

Do 65 승리 패널 나타나는 효과 배경 분리 필요
This commit is contained in:
Jay 2025-03-27 10:22:24 +09:00 committed by GitHub
commit d906bc234f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 11 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()
{
// 무한 회전 효과