- Assets/_Game/ 하위로 게임 에셋 통합 - External/ 패키지 벤더별 분류 (Synty, Animations, UI) - 에셋 네이밍 컨벤션 확립 및 적용 (Data_Skill_, Data_SkillEffect_, Prefab_, Anim_, Model_, BT_ 등) - pre-commit hook으로 네이밍 컨벤션 자동 검사 추가 - RESTRUCTURE_CHECKLIST.md 작성 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
60 lines
1.6 KiB
C#
60 lines
1.6 KiB
C#
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
using TMPro;
|
|
|
|
namespace Colosseum.UI
|
|
{
|
|
/// <summary>
|
|
/// 게임 오버 UI 컨트롤러.
|
|
/// GameManager에 의해 활성화/비활성화됩니다.
|
|
/// </summary>
|
|
public class GameOverUI : MonoBehaviour
|
|
{
|
|
[Header("UI References")]
|
|
[Tooltip("게임 오버 텍스트")]
|
|
[SerializeField] private TMP_Text gameOverText;
|
|
|
|
[Tooltip("재시작 카운트다운 텍스트")]
|
|
[SerializeField] private TMP_Text countdownText;
|
|
|
|
[Tooltip("게임 오버 애니메이터")]
|
|
[SerializeField] private Animator animator;
|
|
|
|
[Header("Settings")]
|
|
[Tooltip("게임 오버 텍스트")]
|
|
[SerializeField] private string gameOverMessage = "GAME OVER";
|
|
|
|
[Tooltip("텍스트 색상")]
|
|
[SerializeField] private Color textColor = Color.red;
|
|
|
|
private void Start()
|
|
{
|
|
if (gameOverText != null)
|
|
{
|
|
gameOverText.text = gameOverMessage;
|
|
gameOverText.color = textColor;
|
|
}
|
|
}
|
|
|
|
private void OnEnable()
|
|
{
|
|
// 애니메이션 재생
|
|
if (animator != null)
|
|
{
|
|
animator.SetTrigger("Show");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// 카운트다운 텍스트 업데이트
|
|
/// </summary>
|
|
public void UpdateCountdown(int seconds)
|
|
{
|
|
if (countdownText != null)
|
|
{
|
|
countdownText.text = $"Restarting in {seconds}...";
|
|
}
|
|
}
|
|
}
|
|
}
|