Exemplo n.º 1
0
        internal void openInit(OpenType type, params object[] o)
        {
            mIsRealPlane     = true;
            mInitOver        = false;
            mInitDelayAction = null;
            mMainPlane       = this.gameObject.GetComponent <FCUniversalPanel>();
            mIsClose         = false;
            mArgs            = o;
            if (type != OpenType.OT_Normal)
            {
                openPool(type, o);
            }
            else
            {
                ScriptsTime.BeginTag("_plane");
                Init(o);
                ScriptsTime._ShowTimeTag("_plane", this.GetType().Name + "打开消耗");
            }

            mInitOver = true;
            if (mInitDelayAction != null)
            {
                mInitDelayAction();
            }
        }
Exemplo n.º 2
0
        protected override void Init()
        {
            DontDestroyOnLoad(this.gameObject);
            mMainPlane = this.GetComponent <FCUniversalPanel>();
            mUICamera  = mMainPlane.GetFObject <Camera>("F_Camera");
            mLowPlane  = mMainPlane.GetFObject <RectTransform>("F_LowPlane");
            mLowPlane.gameObject.SetActive(false);
            HigPlane = mMainPlane.GetFObject <RectTransform>("F_HigPlane");
            HigPlane.gameObject.SetActive(false);
            RectTransform rt = mMainPlane.GetFObject <RectTransform>("F_Plane");

            mOtherPlane = new FGroup <RectTransform>();
            mOtherPlane.Init(rt, (i, t) =>
            {
                t.name = ((LayerType)i).ToString();
                t.anchoredPosition3D = Vector3.zero;
                t.sizeDelta          = Vector3.zero;
                t.gameObject.SetActive(false);
            });
            mOtherPlane.Refurbish((int)LayerType.LT_Hig);
            mUIPlane = mOtherPlane[(int)LayerType.LT_Normal];
        }