Exemplo n.º 1
0
 public override void InitUIData()
 {
     base.InitUIData();
     Inst              = this;
     m_CaptionPoint    = selfTransform.FindChild("CaptionPoint");
     m_LevelText       = selfTransform.FindChild("UI_Menu/ButtomLayer/Panel/LevelText").GetComponent <Text>();
     m_LeftUnOpenText  = selfTransform.FindChild("UI_Menu/Left/NameBack/UnOpenText").GetComponent <Text>();
     m_RightUnOpenText = selfTransform.FindChild("UI_Menu/Right/NameBack/UnOpenText").GetComponent <Text>();
     m_LeftNameText    = selfTransform.FindChild("UI_Menu/Left/Name").GetComponent <Text>();
     m_RightNameText   = selfTransform.FindChild("UI_Menu/Right/Name").GetComponent <Text>();
     MsgBoxGroup       = selfTransform.FindChild("MsgBoxGroup");
     GoNext_Btn        = selfTransform.FindChild("UI_Menu/StartFightButton01").GetComponent <Button>();
     GoNext_Btn.onClick.AddListener(new UnityEngine.Events.UnityAction(OnClickGoNextBtn));
     severTime    = ObjectSelf.GetInstance().ServerTime;
     mLeftGray    = selfTransform.FindChild("UI_Menu/Left/LeftBg").GetComponent <Image>();
     mRightGray   = selfTransform.FindChild("UI_Menu/Right/RightBg").GetComponent <Image>();
     mStageInfo   = selfTransform.FindChild("UI_Menu/ButtomLayer/Panel").GetComponent <UI_StageInfo>();
     GoNextEffect = selfTransform.FindChild("UI_Menu/StartFightButton01/StartFightStar01").gameObject;
     m_BackBtn    = selfTransform.FindChild("backBtn").GetComponent <Button>();
     m_BackBtn.onClick.AddListener(onBackCall);
     selfTransform.FindChild("PlayerInfoItem").GetComponent <UI_PlayerInfo>().mBackEvent = new UnityEngine.Events.UnityAction(onBackCall);
     UpdateShow();
     GameEventDispatcher.Inst.addEventListener(GameEventID.G_FightNumSucceed, FightNumShow);
 }
Exemplo n.º 2
0
 public override void InitUIData()
 {
     base.InitUIData();
     _instance = this;
 }