Files
CreatGame/UnityGame/Assets/Scripts/GameLogic/GameLogic.cs

27 lines
594 B
C#
Raw Normal View History

2025-07-16 19:16:46 +08:00
using System.Collections;
using CreatGame.UI;
using UnityEditor.VersionControl;
namespace CreatGame
2025-07-15 15:33:35 +08:00
{
2025-07-16 13:36:21 +08:00
public class GameLogic : Singleton<GameLogic>
2025-07-15 15:33:35 +08:00
{
2025-07-16 19:16:46 +08:00
public IEnumerator Start()
2025-07-16 13:36:21 +08:00
{
2025-07-16 19:16:46 +08:00
AssetBundle.AssetBundleManager.Instance.Initialize();
while (true)
{
if (AssetBundle.AssetBundleManager.Instance.IsInitializeAsync)
{
break;
}
yield return null;
}
UIManager.Instance.OpenView<UI.UIMainView>(UILayer.Main);
2025-07-16 13:36:21 +08:00
}
2025-07-15 15:33:35 +08:00
}
}