Ejemplo n.º 1
0
    public override void InitWindowManager()
    {
        base.InitWindowManager();
        InitWindowControl();
        isNeedWaitHideOver = true;
        DontDestroyOnLoad(UIRoot);

        if (UIFixedWidowRoot == null)
        {
            UIFixedWidowRoot = new GameObject("UIFixedWidowRoot").transform;
            GameUtility.AddChildToTarget(UIRoot, UIFixedWidowRoot);
            GameUtility.ChangeChildLayer(UIFixedWidowRoot, UIRoot.gameObject.layer);
        }
        if (UIPopUpWindowRoot == null)
        {
            UIPopUpWindowRoot = new GameObject("UIPopUpWindowRoot").transform;
            GameUtility.AddChildToTarget(UIRoot, UIPopUpWindowRoot);
            GameUtility.ChangeChildLayer(UIPopUpWindowRoot, UIRoot.gameObject.layer);
        }
        if (UINormalWindowRoot == null)
        {
            UINormalWindowRoot = new GameObject("UINormalWindowRoot").transform;
            GameUtility.AddChildToTarget(UIRoot, UINormalWindowRoot);
            GameUtility.ChangeChildLayer(UINormalWindowRoot, UIRoot.gameObject.layer);
        }
    }