async void RunTests() { await ResourceSystem.Init(); ResourceSystem.ResMode = ResourceSystem.Mode.AssetBundle; AssetSystem.Instance.disposeDelay = 2f; ResLog.Log("=== ResourceSystem Initialized ==="); foreach (Type type in testerTypes) { ResLog.LogFormat("=== Run {0} ===", type.Name); var go = new GameObject(); var tester = (Tester)go.AddComponent(type); try { await tester.Test(); } catch (Exception e) { ResLog.LogException(e); } Destroy(go); await Awaiters.NextFrame; ResLog.Log("=== Done ==="); } }
async void Init() { await ResourceSystem.Init(); modeSelector.Init(); AddOptions(); initialized = true; }