|
@@ -64,7 +64,7 @@ namespace GFGGame
|
|
base.OnShown();
|
|
base.OnShown();
|
|
MusicManager.Instance.Play(ResPathUtil.GetMusicPath(ConstMusicName.DEFAULT));
|
|
MusicManager.Instance.Play(ResPathUtil.GetMusicPath(ConstMusicName.DEFAULT));
|
|
_chapterID = (int)viewData;
|
|
_chapterID = (int)viewData;
|
|
- StoryDataManager.currentChapterCfgId = _chapterID;
|
|
|
|
|
|
+ MainStoryDataManager.currentChapterCfgId = _chapterID;
|
|
_compChapter = (GComponent)UIPackage.CreateObject("Main", "CompChapter" + _chapterID);
|
|
_compChapter = (GComponent)UIPackage.CreateObject("Main", "CompChapter" + _chapterID);
|
|
_ui.m_chapter.AddChild(_compChapter);
|
|
_ui.m_chapter.AddChild(_compChapter);
|
|
InitChapter();
|
|
InitChapter();
|
|
@@ -113,7 +113,7 @@ namespace GFGGame
|
|
{
|
|
{
|
|
UI_CompStoryLevelItem levelItem = UI_CompStoryLevelItem.Proxy(obj);
|
|
UI_CompStoryLevelItem levelItem = UI_CompStoryLevelItem.Proxy(obj);
|
|
levelItem.target.data = levelCfg.id;
|
|
levelItem.target.data = levelCfg.id;
|
|
- if (StoryDataManager.CheckLevelUnlock(levelCfg.id))
|
|
|
|
|
|
+ if (MainStoryDataManager.CheckLevelUnlock(levelCfg.id))
|
|
{
|
|
{
|
|
levelItem.target.visible = true;
|
|
levelItem.target.visible = true;
|
|
levelItem.target.onClick.Clear();
|
|
levelItem.target.onClick.Clear();
|
|
@@ -149,7 +149,7 @@ namespace GFGGame
|
|
if (levelItem.m_holder.visible)
|
|
if (levelItem.m_holder.visible)
|
|
{
|
|
{
|
|
//设置为解锁关卡
|
|
//设置为解锁关卡
|
|
- StoryDataManager.currentLevelCfgId = levelCfg.id;
|
|
|
|
|
|
+ MainStoryDataManager.currentLevelCfgId = levelCfg.id;
|
|
|
|
|
|
_unPasslevelItem = levelItem.target;
|
|
_unPasslevelItem = levelItem.target;
|
|
_gameObject = null;
|
|
_gameObject = null;
|
|
@@ -195,7 +195,7 @@ namespace GFGGame
|
|
|
|
|
|
private void UpdateBonusBoxStatus(UI_CompBonusBox bonusBox, int index)
|
|
private void UpdateBonusBoxStatus(UI_CompBonusBox bonusBox, int index)
|
|
{
|
|
{
|
|
- int status = StoryDataManager.GetChapterBonusStatus(StoryDataManager.currentChapterCfgId, index);
|
|
|
|
|
|
+ int status = MainStoryDataManager.GetChapterBonusStatus(MainStoryDataManager.currentChapterCfgId, index);
|
|
bonusBox.m_iconActive.visible = status == ConstBonusStatus.CAN_GET;
|
|
bonusBox.m_iconActive.visible = status == ConstBonusStatus.CAN_GET;
|
|
if (status == ConstBonusStatus.GOT)
|
|
if (status == ConstBonusStatus.GOT)
|
|
{
|
|
{
|
|
@@ -213,7 +213,7 @@ namespace GFGGame
|
|
int status = (int)bonusBox.target.data;
|
|
int status = (int)bonusBox.target.data;
|
|
if (status == ConstBonusStatus.CAN_GET)
|
|
if (status == ConstBonusStatus.CAN_GET)
|
|
{
|
|
{
|
|
- List<ItemData> bonusList = StoryDataManager.GetChapterBonus(StoryDataManager.currentChapterCfgId, index);
|
|
|
|
|
|
+ List<ItemData> bonusList = MainStoryDataManager.GetChapterBonus(MainStoryDataManager.currentChapterCfgId, index);
|
|
if (bonusList != null && bonusList.Count > 0)
|
|
if (bonusList != null && bonusList.Count > 0)
|
|
{
|
|
{
|
|
// ViewManager.Show(ViewName.GET_BONUS_VIEW, bonusList);
|
|
// ViewManager.Show(ViewName.GET_BONUS_VIEW, bonusList);
|