using System.Collections; using CreatGame.UI; using UnityEditor.VersionControl; namespace CreatGame { public class GameLogic : Singleton { public IEnumerator Start() { AssetBundle.AssetBundleManager.Instance.Initialize(); while (true) { if (AssetBundle.AssetBundleManager.Instance.IsInitializeAsync) { break; } yield return null; } UIManager.Instance.OpenView(UILayer.Main); } public void Destroy() { AssetBundle.AssetBundleManager.Instance.ReleaseAll(); } } }