Example #1
0
 private void Awake()
 {
     ChapterData        = TableDataExtension.GetTableData <DRChapter>(Data.GetInstance().getcurrentChapterID());
     LevelData          = TableDataExtension.GetTableData <DRBattle>(Data.GetInstance().getcurrentLevelID());
     ChapterNum         = TableDataExtension.GetTableData <DRScene>(Data.GetInstance().getcurrentSceneID()).ChapterNum;
     currentLevelallNum = ChapterData.BattleNum;
 }
Example #2
0
        //章节ID 展示:通关奖励&章节选择
        private void UIInfoShowByChapterID()
        {
            ChapterData        = TableDataExtension.GetTableData <DRChapter>(Data.GetInstance().getcurrentChapterID());
            currentLevelallNum = ChapterData.BattleNum;
            Data.GetInstance().datachangeByChapter();
            LevelData = TableDataExtension.GetTableData <DRBattle>(Data.GetInstance().getcurrentLevelID());
            isshowLRLevle();
            Level_Text.text = Data.GetInstance().getcurrentLevelID() + "";
            passLevelUIshow();
            //Debug.Log(LevelData.BattleOrder);
            if (ChapterData == null)
            {
                //Debug.Log("小老弟你怎么了");
                return;
            }
            EnegyBonusNum_text.text = ChapterData.EnegyBonusNum + "";
            CoinBonusNum_text.text  = ChapterData.CoinBonusNum + "";
            GoldBonusNum_text.text  = ChapterData.GoldBonusNum + "";

            S_text.text = ChapterData.ChapterOrder + "";
            ChoiceShowing.GetComponent <Image>().sprite = Resources.Load("UI/UIphoto/choiceMenuUI/chaptericon_" + (ChapterData.ChapterOrder), typeof(Sprite)) as Sprite;
            if (ChapterData.ChapterOrder == 1)
            {
                L_text.text = "";
            }
            else
            {
                L_text.text = ChapterData.ChapterOrder - 1 + "";
                ChoiceLeft.GetComponent <Image>().sprite = Resources.Load("UI/UIphoto/choiceMenuUI/chaptericon_" + (ChapterData.ChapterOrder - 1), typeof(Sprite)) as Sprite;
            }
            if (ChapterData.ChapterOrder == ChapterNum)
            {
                R_text.text = "";
            }
            else
            {
                R_text.text = ChapterData.ChapterOrder + 1 + "";
                ChoiceRight.GetComponent <Image>().sprite = Resources.Load("UI/UIphoto/choiceMenuUI/chaptericon_" + (ChapterData.ChapterOrder + 1), typeof(Sprite)) as Sprite;
            }
        }