public void ConfirmBattleTeam(string TeamId) { SDGameManager.Instance.currentHeroTeamId = TeamId; // ChapterLevelController CLC = homeScene._LevelEnterPanel.GetComponent <LevelEnterPanel>().CLC; CLC.GoToBattleScene(); }
public void ThisSectionBtnTapped() { if (IsLocked) { return; } if (CLC == null) { CLC = GetComponentInParent <ChapterLevelController>(); } SDGameManager.Instance.currentLevel = level; //CLC.GoToBattleScene(); CLC.GoToTeamSelectPanel(); }
public void initThisBtn_perSerial(int index) { if (CLC == null) { CLC = GetComponentInParent <ChapterLevelController>(); } level = index * SDConstants.LevelNumPerSection + CLC.LocalSerialIndex * SDConstants.LevelNumPerSerial; sectionIndex = index + CLC.LocalSerialIndex * SDConstants.SectionNumPerSerial + CLC.LocalChapterIndex * SDConstants.SectionNumPerChapter; localIndex = index; if (localIndex == SDConstants.SectionNumPerSerial - 1) { BtnNameText.text = string.Format("{0:D}-BOSS" , level ); } else { BtnNameText.text = string.Format("{0:D}-{1:D}" , level , level + SDConstants.LevelNumPerSection - 1 ); } if (sectionIndex > SDDataManager.Instance.PlayerData.maxPassSection + 1) { IsLocked = true; return; } else { IsLocked = false; } // GDESectionData data = SDDataManager.Instance.getSectionHistoryByIndex(sectionIndex); if (data == null) { SDDataManager.Instance.SaveSectionHistory(sectionIndex, 0); data = SDDataManager.Instance.getSectionHistoryByIndex(sectionIndex); } Remark = data.remark; ReceiveReward = data.receiveReward; }
// Start is called before the first frame update void Start() { CLC = GetComponentInParent <ChapterLevelController>(); }