42 lines
1.3 KiB
C#
42 lines
1.3 KiB
C#
using OneStore.Common; // 지우면 안됨
|
|
using System.Collections;
|
|
using TMPro;
|
|
using UnityEngine;
|
|
using UnityEngine.U2D;
|
|
|
|
public class TitleInfo : MonoBehaviour
|
|
{
|
|
[SerializeField] TextMeshProUGUI label_msg, t_ver;
|
|
[SerializeField] GameObject go_LobbyUI;
|
|
|
|
private void Awake()
|
|
{
|
|
Screen.sleepTimeout = SleepTimeout.NeverSleep;
|
|
Application.targetFrameRate = 60;
|
|
go_LobbyUI.SetActive(false);
|
|
}
|
|
|
|
IEnumerator Start()
|
|
{
|
|
t_ver.text = Application.version;
|
|
#if UNITY_EDITOR
|
|
t_ver.text += "(E)";
|
|
#else
|
|
t_ver.text += StoreEnvironment.GetStoreType() == StoreType.ONESTORE ? "(O)" : "(G)";
|
|
#endif
|
|
label_msg.text = "게임 데이터를 읽고 있습니다.";
|
|
|
|
// 테이블 로딩 기다리기
|
|
while (!TableChecker.Ins.CheckAllLoad()) yield return null;
|
|
// UI 아틀라스 로드
|
|
yield return AddrResourceMgr.Ins.LoadObjectSequential<SpriteAtlas>("MainUI/UIAtlas.spriteatlasv2", atlas => { UIAtlasMgr.Ins.Set(atlas); });
|
|
|
|
label_msg.text = "로비로 진입 중입니다.";
|
|
yield return null;
|
|
|
|
yield return new WaitForSeconds(3f);
|
|
gameObject.SetActive(false);
|
|
go_LobbyUI.SetActive(true);
|
|
SoundInfo.Ins.Play_BGM(eBGM.b001_BGM);
|
|
}
|
|
} |