예제 #1
0
    private bool CreateUISystem()
    {
        ClearUISystem();
        GameObject uiObj = GameObject.Instantiate(UISystemPrefab, Vector3.zero, Quaternion.identity);

        uiObj.name = "UI";
        UI         = uiObj.GetComponent <UISystem>();
        if (UI == null)
        {
            Debug.LogError("DialogManager Failed to load UI System Component");
            return(false);
        }
        DontDestroyOnLoad(uiObj);

        UI.CreateCanvases();
        return(true);
    }