コード例 #1
0
    ///异步加载UIMnager
    public static void InitAsync()
    {
        GameObject instance = GameObject.Find("UIManager");

        if (instance == null)
        {
            GameObjectManager.CreateGameObjectByPoolAsync("UIManager", (obj) => {
                SetUIManager(obj);
            });
        }
        else
        {
            SetUIManager(instance);
        }
    }