2026-01-07 21:27:42 +00:00
|
|
|
using System;
|
|
|
|
|
using System.Collections;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
using UnityEngine.U2D;
|
|
|
|
|
using UnityEngine.UI;
|
|
|
|
|
|
|
|
|
|
public class Title_Mgr : MonoBehaviourSingletonTemplate<Title_Mgr>
|
|
|
|
|
{
|
|
|
|
|
protected override void Awake()
|
|
|
|
|
{
|
|
|
|
|
base.Awake();
|
|
|
|
|
DontDestroy();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public IEnumerator Co_Check(Action<float> addslidevalue = null)
|
|
|
|
|
{
|
|
|
|
|
while (!TableChecker.Ins.CheckAllLoad()) yield return null;
|
|
|
|
|
|
|
|
|
|
// UI 아틀라스 로드
|
2026-01-12 03:59:01 +00:00
|
|
|
//yield return AddrResourceMgr.Ins.LoadObjectSequential<SpriteAtlas>("MainUI/UIAtlas.spriteatlas", atlas => { UIAtlasMgr.Ins.Set(atlas); });
|
|
|
|
|
yield return new WaitForSeconds(0.1f);
|
2026-01-07 21:27:42 +00:00
|
|
|
addslidevalue?.Invoke(0.1f);
|
|
|
|
|
// OverUI (NetWait, Option 등) 로드
|
2026-01-12 03:59:01 +00:00
|
|
|
//yield return AddrResourceMgr.Ins.LoadObjectSequential<GameObject>("Title/OverUI.prefab",
|
|
|
|
|
// go =>
|
|
|
|
|
// {
|
|
|
|
|
// var overui = DSUtil.Get_Clone(go);
|
|
|
|
|
// DontDestroyOnLoad(overui);
|
|
|
|
|
// });
|
|
|
|
|
yield return new WaitForSeconds(0.1f);
|
2026-01-07 21:27:42 +00:00
|
|
|
addslidevalue?.Invoke(0.1f);
|
|
|
|
|
}
|
|
|
|
|
}
|