示例#1
0
    public GameObject LoadCanvas(string canvasPrefabPath, IElementCenter elementCenter)
    {
        var canvasUIObj = CreateGameObjectFromPrefab(canvasPrefabPath);
        var rootUIObj   = concreteUIManager.GetRootUIObjectFromCanvasObject(canvasUIObj);

        elementCenter.Add(UI_ROOT_ELEMENT_ID, rootUIObj);

        return(rootUIObj);
    }