- ToonPostProcess.shader: 횃불 고딕 스타일 후처리 쉐이더 (Built-in RP) - ToonCameraEffect.cs: 카메라 자동 부착 후처리 스크립트 - 중복 UI 스크립트 제거 (MenuIntroController, ToggleCustom) - 씬, 프리팹, 애니메이션 등 전체 업데이트 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
30 lines
670 B
C#
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);
|
|
}
|
|
} |