feat: 게임 오버 및 승리 UI 구현

- GameOverUI: 게임 오버 화면 표시
- VictoryUI: 보스 처치 시 승리 화면 표시
- VictoryEffect: 슬로우 모션, 카메라 연출, 이펙트 재생

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
2026-03-14 15:08:34 +09:00
parent 0a1aeea825
commit 00233ee977
7 changed files with 315 additions and 0 deletions

View File

@@ -0,0 +1,55 @@
using UnityEngine;
using UnityEngine.UI;
using TMPro;
using Colosseum.Enemy;
namespace Colosseum.UI
{
/// <summary>
/// 승리 UI 컨트롤러.
/// GameManager에 의해 활성화/비활성화됩니다.
/// </summary>
public class VictoryUI : MonoBehaviour
{
[Header("UI References")]
[Tooltip("승리 텍스트")]
[SerializeField] private TMP_Text victoryText;
[Tooltip("보스 이름 텍스트")]
[SerializeField] private TMP_Text bossNameText;
[Tooltip("승리 애니메이터")]
[SerializeField] private Animator animator;
[Header("Settings")]
[Tooltip("승리 텍스트")]
[SerializeField] private string victoryMessage = "VICTORY!";
[Tooltip("텍스트 색상")]
[SerializeField] private Color textColor = Color.yellow;
private void Start()
{
if (victoryText != null)
{
victoryText.text = victoryMessage;
victoryText.color = textColor;
}
}
private void OnEnable()
{
// 보스 이름 표시
if (bossNameText != null && BossEnemy.ActiveBoss != null)
{
bossNameText.text = $"{BossEnemy.ActiveBoss.name} Defeated!";
}
// 애니메이션 재생
if (animator != null)
{
animator.SetTrigger("Show");
}
}
}
}