게임 매니저 수정
This commit is contained in:
parent
57a7a1bcdd
commit
d7c190fccf
@ -1,3 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using UnityEngine;
|
||||
@ -11,13 +12,20 @@ public class GameManager : Singleton<GameManager>
|
||||
|
||||
private List<Singleton> _managerInstances;
|
||||
|
||||
protected override void OnAwake()
|
||||
protected override async void OnAwake()
|
||||
{
|
||||
base.OnAwake();
|
||||
|
||||
EventBus.ClearAll();
|
||||
|
||||
_ = Initialize();
|
||||
try
|
||||
{
|
||||
await Initialize();
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Debug.LogError(e);
|
||||
}
|
||||
}
|
||||
|
||||
private async Task Initialize()
|
||||
|
Loading…
Reference in New Issue
Block a user