ThreeKingdomsSlingshot/Assets/Scripts/OutGame/Boot/TitleSceneBoot.cs

26 lines
825 B
C#

using UnityEngine;
namespace TKS.OutGame
{
/// <summary>
/// Title 씬 — 타이틀 화면만(이 씬만 열고 Play 해도 됨) · 누름 → 타이틀 페이드(검정) → Battle 씬(본영 로비) 페이드 인.
/// </summary>
public class TitleSceneBoot : MonoBehaviour
{
/// <summary>검증 캡처가 직접 띄울 때 자동 표시를 끔.</summary>
public static bool SuppressAutoShow;
void Start()
{
var cam = BootScenes.Cam(Color.black);
if (!SuppressAutoShow && TitleScreen.Current == null) TitleScreen.Show(cam, GoToGame);
}
/// <summary>타이틀 누름 뒤(이미 검정) → 게임 씬.</summary>
public static void GoToGame()
{
BootScenes.FromBlack(BootScenes.Game);
}
}
}