Ejemplo n.º 1
0
 public void InitMask(MyCanvas myCanvas)
 {
     _GoCanvasRoot     = myCanvas._TraCanvasTransfrom.gameObject;
     _TraUIScriptsNode = myCanvas._TraUIScripts;
     UnityHelper.AddChildNodeToParentNode(_TraUIScriptsNode, this.gameObject.transform);
     _GoTopPanel  = _GoCanvasRoot;
     _GoMaskPanel = UnityHelper.FindTheChildNode(_GoCanvasRoot, "_UIMaskPanel").gameObject;
 }
Ejemplo n.º 2
0
        //初始化加载(根UI窗体)Canvas预设
        private void InitRootCanvasLoading()
        {
            GameObject canvasGO = ResourcesMgr.GetInstance().LoadAsset(SysDefine.SYS_PATH_CANVAS, false);
            MyCanvas   temp     = new MyCanvas(canvasGO.transform);

            canvasDic.Add(canvasGO.name, temp);
            CurrentCanvas = temp;
        }
Ejemplo n.º 3
0
 /// <summary>
 /// 更改当前控制的Canvas
 /// </summary>
 /// <param name="temp"></param>
 private void AlterCanvas(MyCanvas temp)
 {
     _DicALLUIForms         = temp._DicALLUIForms;
     _DicCurrentShowUIForms = temp._DicCurrentShowUIForms;
     _StaCurrentUIForms     = temp._StaCurrentUIForms;
     _TraCanvasTransfrom    = temp._TraCanvasTransfrom;
     _TraNormal             = temp._TraNormal;
     _TraFixed     = temp._TraFixed;
     _TraPopUp     = temp._TraPopUp;
     _TraUIScripts = temp._TraUIScripts;
 }