Shegotwet/Assets/Scripts/Title/TitleInfo.cs

35 lines
1.1 KiB
C#
Raw Normal View History

2025-09-09 00:33:44 +00:00
using System.Collections;
using TMPro;
using UnityEngine;
using UnityEngine.U2D;
public class TitleInfo : MonoBehaviour
2025-09-09 00:33:44 +00:00
{
2025-09-11 06:10:39 +00:00
[SerializeField] TextMeshProUGUI label_msg, t_ver;
[SerializeField] GameObject go_LobbyUI;
private void Awake()
{
2025-09-12 19:51:36 +00:00
Screen.sleepTimeout = SleepTimeout.NeverSleep;
Application.targetFrameRate = 60;
go_LobbyUI.SetActive(false);
}
2025-09-09 00:33:44 +00:00
IEnumerator Start()
{
t_ver.text = DSUtil.Format("{0}({1})", Application.version, "E or G or O");
2025-09-09 00:48:09 +00:00
label_msg.text = "게임 데이터를 읽고 있습니다.";
2025-09-09 00:33:44 +00:00
2025-09-09 00:48:09 +00:00
// 테이블 로딩 기다리기
while (!TableChecker.Ins.CheckAllLoad()) yield return null;
2025-09-09 00:33:44 +00:00
// UI 아틀라스 로드
yield return AddrResourceMgr.Ins.LoadObjectSequential<SpriteAtlas>("MainUI/UIAtlas.spriteatlasv2", atlas => { UIAtlasMgr.Ins.Set(atlas); });
2025-09-09 00:48:09 +00:00
label_msg.text = "로비로 진입 중입니다.";
2025-09-09 00:33:44 +00:00
yield return null;
yield return new WaitForSeconds(0.1f);
gameObject.SetActive(false);
go_LobbyUI.SetActive(true);
2025-09-09 00:33:44 +00:00
}
}