예제 #1
0
        protected override void Init()
        {
            base.Init();
            //MirrorFlipCamera(GetMianCamera());
            FUniversalPanel main   = this.GetComponent <FUniversalPanel>();
            var             canvas = main.GetFObject <UnityEngine.UI.CanvasScaler>("F_Canvas");

            canvas.matchWidthOrHeight = 0;
        }
예제 #2
0
 public override bool Init()
 {
     m_msgMesh   = new MsgMesh();
     m_ShowEnter = true;
     m_main      = GetComponent <FUniversalPanel>();
     if (m_main != null)
     {
         m_slider     = m_main.GetFObject <Slider>("F_Slider");
         m_enterPanel = m_main.GetFObject("F_EnterPlane");
         m_loadPanel  = m_main.GetFObject("F_LoadPlane");
         m_enterText  = m_main.GetFObject <Text>("F_Title");
         m_enterPanel.SetActive(false);
         m_loadPanel.SetActive(true);
         m_gameType = GameType.GT_NONE;
         if (mMainPlane == null)
         {
             m_loading = new LoadPercent();
             m_loading.SetTimece(1);
             m_loading.GoOn(1);
         }
         else
         {
             m_loading = mMainPlane.mLoadPercent;
         }
         m_msgMesh.RegEvent(EventStrArray.KeyCodeEvent.KEYCODE_ENTER_DOWN, (f) =>
         {
             FEngine.IsInit = true;
             BeginLoadScene();
             //      EventListenManager.Send(EventStrArray.PlayerCtrlEvent.ENTER_GAME);
         });
     }
     else
     {
         Debug.Log("this == null");
     }
     return(base.Init());
 }