Example #1
0
    public void ConfirmBattleTeam(string TeamId)
    {
        SDGameManager.Instance.currentHeroTeamId = TeamId;
        //
        ChapterLevelController CLC = homeScene._LevelEnterPanel.GetComponent <LevelEnterPanel>().CLC;

        CLC.GoToBattleScene();
    }
Example #2
0
    public void ThisSectionBtnTapped()
    {
        if (IsLocked)
        {
            return;
        }
        if (CLC == null)
        {
            CLC = GetComponentInParent <ChapterLevelController>();
        }

        SDGameManager.Instance.currentLevel = level;
        //CLC.GoToBattleScene();
        CLC.GoToTeamSelectPanel();
    }
Example #3
0
    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;
    }
Example #4
0
 // Start is called before the first frame update
 void Start()
 {
     CLC = GetComponentInParent <ChapterLevelController>();
 }