Projext/Assets/02_Scripts/UI/Menu/TabController.cs
hydrozen e989d20668 카툰 쉐이더 추가 + 중복 스크립트 수정 + 전체 업데이트
- ToonPostProcess.shader: 횃불 고딕 스타일 후처리 쉐이더 (Built-in RP)
- ToonCameraEffect.cs: 카메라 자동 부착 후처리 스크립트
- 중복 UI 스크립트 제거 (MenuIntroController, ToggleCustom)
- 씬, 프리팹, 애니메이션 등 전체 업데이트

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-22 12:31:16 +09:00

48 lines
1.2 KiB
C#

using UnityEngine;
using UnityEngine.UI;
using TMPro;
public class TabController : MonoBehaviour
{
[Header("탭 버튼들")]
public Button[] ;
[Header("탭 내용들")]
public GameObject[] ;
[Header("스크롤 초기화용")]
public GraphicsSettingsScroll ; // ← 추가!
[Header("탭 이미지")]
public Sprite ;
public Sprite ;
[Header("탭 텍스트 색상")]
public Color = new Color(1f, 0.85f, 0.2f);
public Color = new Color(0.6f, 0.6f, 0.6f);
void Start()
{
(0);
}
public void (int )
{
for (int i = 0; i < .Length; i++)
{
[i].SetActive(i == );
[i].GetComponent<Image>().sprite =
i == ? : ;
TextMeshProUGUI =
[i].GetComponentInChildren<TextMeshProUGUI>();
if ( != null)
.color = i == ? : ;
}
// SetActive 후에 스크롤 초기화!
if ( != null)
.();
}
}