|
@@ -433,6 +433,39 @@ namespace GFGGame
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /************************************************************引导使用卡牌战斗*******************************************************/
|
|
|
|
+ public static void TryGuideStoryCardChoose(GList list)
|
|
|
|
+ {
|
|
|
|
+
|
|
|
|
+ if (GuideDataManager.GetGuideCount(ConstGuideId.USE_CARD_FIGHT) <= 0
|
|
|
|
+ && StoryDataManager.CheckLevelPass(2, 5)
|
|
|
|
+ && !StoryDataManager.CheckLevelPass(2, 6)
|
|
|
|
+ && StoryDataManager.currentChapter == 2 && StoryDataManager.currentLevel == 6)
|
|
|
|
+ {
|
|
|
|
+ if (list.numChildren > 0)
|
|
|
|
+ {
|
|
|
|
+ UI_ListCardItem listItem = UI_ListCardItem.Proxy(list.GetChildAt(0));
|
|
|
|
+ if (listItem != null)
|
|
|
|
+ {
|
|
|
|
+ GuideDataManager.currentGuideId = ConstGuideId.USE_CARD_FIGHT;
|
|
|
|
+ ShowGuide(listItem.target, true, "选择一张卡牌进行战斗");
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ public static void TryGuideStoryCardChooseBtnConfirm(GObject target)
|
|
|
|
+ {
|
|
|
|
+
|
|
|
|
+ if (GuideDataManager.GetGuideCount(ConstGuideId.USE_CARD_FIGHT) <= 0
|
|
|
|
+ && StoryDataManager.CheckLevelPass(2, 5)
|
|
|
|
+ && !StoryDataManager.CheckLevelPass(2, 6))
|
|
|
|
+ {
|
|
|
|
+
|
|
|
|
+ ShowGuide(target, true, "点击确定进行战斗");
|
|
|
|
+ }
|
|
|
|
+ }
|
|
/*******************************************************************************************************************/
|
|
/*******************************************************************************************************************/
|
|
public static bool TryGuideByGuideId(GObject target, int guideId, int maxCount = 1, bool needUpdate = false, string guideStr = null, int yTxt = 0, int preGuideIdAtThisLogin = 0)
|
|
public static bool TryGuideByGuideId(GObject target, int guideId, int maxCount = 1, bool needUpdate = false, string guideStr = null, int yTxt = 0, int preGuideIdAtThisLogin = 0)
|
|
{
|
|
{
|