Exemple #1
0
 protected override void Awake()
 {
     base.Awake();
     helpPageGo               = transform.Find("HelpPage").gameObject;
     monsterPageGo            = transform.Find("MonsterPage").gameObject;
     towerPageGo              = transform.Find("TowerPage").gameObject;
     sliderCanCoverScrollView = helpPageGo.transform.Find("Scroll View").GetComponent <SliderCanCoverScrollView>();
     sliderScrollView         = towerPageGo.transform.Find("Scroll View").GetComponent <SliderScrollView>();
     helpPanelTween           = transform.DOLocalMoveX(0, 0.5f);
     helpPanelTween.SetAutoKill(false);
     helpPanelTween.Pause();
 }
Exemple #2
0
 protected override void Awake()
 {
     base.Awake();
     playerManager    = mUIFacade.mPlayerManager;
     bigLevelPage     = new Transform[bigLevelPageCount];
     sliderScrollView = transform.Find("Scroll View").GetComponent <SliderScrollView>();
     for (int i = 0; i < bigLevelPageCount; i++)
     {
         bigLevelPage[i] = bigLevelContentTrans.GetChild(i);
         ShowBigLevelState(playerManager.unLockedNormalModelBigLevelList[i], playerManager.unLockedeNormalModelLevelNum[i], 5, bigLevelPage[i], i + 1);
     }
     hasRigisterEvent = true;
 }
Exemple #3
0
 protected override void Awake()
 {
     base.Awake();
     filePath             = "GameOption/Normal/Level/";
     playerManager        = mUIFacade.mPlayerManager;
     levelContentImageGos = new List <GameObject>();
     towerContentImageGos = new List <GameObject>();
     levelContentTrans    = transform.Find("Scroll View").Find("Viewport").Find("Content");
     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>();
     tex_TotalWaves       = transform.Find("Img_TotalWaves").Find("Text").GetComponent <Text>();
     sliderScrollView     = transform.Find("Scroll View").GetComponent <SliderScrollView>();
     currentBigLevelID    = 1;
     currentLevelID       = 1;
 }