//public Text xiale;
 protected override void Awake()
 {
     base.Awake();
     sliderScrowView = gameObject.transform.Find("Scroll View").GetComponent <SliderScrowView>();
     playerManager   = mUIFacade.mPlayerManager;
     bigLevelPage    = new Transform[bigLevelPageCount];
     //显示大关卡信息
     for (int i = 0; i < bigLevelPageCount; i++)
     {
         bigLevelPage[i] = bigLevelContentTrans.GetChild(i);
         ShowBigLevelState(i + 1, 5, playerManager.unlockedNormalModelLevelNum[i], playerManager.unLockedNormalModelBigLevelList[i], bigLevelPage[i]);
     }
     hasRegisterEvent = true;
 }
Beispiel #2
0
 protected override void Awake()
 {
     base.Awake();
     helpPageGo    = transform.Find("HelpPage").gameObject;
     monsterPageGo = transform.Find("MonsterPage").gameObject;
     towerPageGo   = transform.Find("TowerPage").gameObject;
     //这里可能存在的问题,就是上面还没找到,这里就取组件,最后是空,如果是这样,把这里不要使用变量,直接再找一次
     //Debug.Log(helpPageGo);
     sliderScrowView          = towerPageGo.transform.Find("Scroll View").GetComponent <SliderScrowView>();
     sliderCanCoverScrollView = helpPageGo.transform.Find("Scroll View").GetComponent <SliderCanCoverScrollView>();
     helpTween = transform.DOLocalMoveX(0, 0.5f);
     helpTween.SetAutoKill(false);
     helpTween.Pause();
 }
 protected override void Awake()
 {
     base.Awake();
     filePath            = "GameOption/Normal/Level/";
     playerManager       = mUIFacade.mPlayerManager;
     levelContentImageGO = new List <GameObject>();
     towerContentImageGO = new List <GameObject>();
     levelContentTrans   = transform.Find("Scroll View").Find("Viewport").Find("Content").transform;
     img_LockBtnGo       = transform.Find("Img_LockBtn").gameObject;
     emp_TowerTrans      = transform.Find("Emp_Tower");
     img_BGLeft          = transform.Find("Img_BGLeft").GetComponent <Image>();
     img_BGRight         = transform.Find("Img_BGRight").GetComponent <Image>();
     text_TotalWaves     = transform.Find("Image_TotalWaves").Find("Text").GetComponent <Text>();
     sliderScrowView     = transform.Find("Scroll View").GetComponent <SliderScrowView>();
     currentBigLevelID   = 1;//初始为1
     currentLevelID      = 1;
 }