protected override void Awake()
 {
     base.Awake();
     playerManager = mUIFacade.mPlayManager;
     bigLevelPage  = new Transform[BigLevelPageCount];
     slideMove     = transform.Find("Scroll View").GetComponent <SlideMoveDan>();
     for (int i = 0; i < BigLevelPageCount; i++)
     {
         bigLevelPage[i] = bigLevelContentTrans.GetChild(i);
         ShowBigLevelState(playerManager.unLockedNurmalModelBigLevelList[i], playerManager.unLockedNurmalModelLevelNum[i],
                           5, bigLevelPage[i], i + 1);
     }
     hasRigisterEvent = true;
 }
Esempio n. 2
0
 protected override void Awake()
 {
     base.Awake();
     filePath             = "GameOption/Normal/Level/";
     playerManager        = mUIFacade.mPlayManager;
     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>();
     slideMove            = transform.Find("Scroll View").GetComponent <SlideMoveDan>();
     currentBigLevelID    = 1;
     currentLevelID       = 1;
 }