[Update] 로직 변경 및 회전 문제 해결 등

1. 회전 시 펜스가 사라지거나 남았던 현상 해결
   - 펜스의 LOD가 여러개여서 필요한것만 남기고 삭제

2. 실드 ui 조정
   - 별도의 스크립트와 핸들러를 이용해 빈 오브젝트(앵커)에 소속하게 변경
   - pc에서는 화면 우측 상단으로 이동
   - 모바일에서는 버튼 안으로 이동

3. 폰트 변경
This commit is contained in:
jongjae0305
2026-04-22 13:56:03 +09:00
parent 6c84f865d8
commit ed1e24be1d
22 changed files with 14832 additions and 907 deletions
+26
View File
@@ -0,0 +1,26 @@
using UnityEngine;
using UnityEngine.UI;
using TMPro;
public class ShieldUIHandler : MonoBehaviour
{
[SerializeField] private Image shieldIcon;
[SerializeField] private TextMeshProUGUI countText;
// UI 업데이트만 담당하는 함수
public void UpdateShieldUI(int count)
{
if (countText != null)
{
countText.text = count.ToString();
// 개수가 0이면 텍스트 숨기기
countText.gameObject.SetActive(count > 0);
}
if (shieldIcon != null)
{
// 색상 조절 로직
shieldIcon.color = (count > 0) ? Color.white : new Color(0.2f, 0.2f, 0.2f, 0.5f);
}
}
}