Projext/Assets/02_Scripts/UI/Loading/SceneFadeIn.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

30 lines
670 B
C#

using System.Collections;
using UnityEngine;
using UnityEngine.UI;
public class SceneFadeIn : MonoBehaviour
{
public Image ;
public float = 1.5f;
void Start()
{
StartCoroutine(());
}
IEnumerator ()
{
.color = new Color(0, 0, 0, 1);
float time = 0f;
while (time < )
{
time += Time.deltaTime;
float alpha = Mathf.Lerp(1f, 0f, time / );
.color = new Color(0, 0, 0, alpha);
yield return null;
}
.color = new Color(0, 0, 0, 0);
}
}