【修行】第二短引导

dev_chengFeng
ZhangBiao 2021-05-25 20:39:37 +08:00
parent d835687e8c
commit 8d4d1aa777
4 changed files with 16 additions and 4 deletions

View File

@ -468,5 +468,9 @@ GameEvent = {
--心魔试炼
MonsterCamp={
UpdatePri = "MonsterCamp.UpdatePri",
},
--修行引导
Practice={
PracticeGuide = "Practice.PracticeGuide"
}
}

View File

@ -16,6 +16,7 @@ function this.Initialize()
Game.GlobalEvent:AddEvent(GameEvent.FunctionCtrl.OnFunctionOpen, this.OnFunctionOpen)
Game.GlobalEvent:AddEvent(GameEvent.Player.OnLevelChange, this.OnLevelChange)
Game.GlobalEvent:AddEvent(GameEvent.HongMeng.HongMengGuide,this.HongMengGuideFun)
Game.GlobalEvent:AddEvent(GameEvent.Practice.PracticeGuide,this.PracticeGuideFun)
end
this.IsFirstOpenHarmonyBei = false
function this.HongMengGuideFun(OnOff)
@ -32,14 +33,17 @@ function this.HongMengGuideFun(OnOff)
-- if HarmonyManager.hongmengGuards[i].heroId ~= "" then
-- -- body
-- local _heroData = HeroManager.GetSingleHeroData(HarmonyManager.hongmengGuards[i].heroId)
-- HeroManager.UpdateSingleHeroDatas(_heroData.dynamicId, 1, _heroData.star, 0, _heroData.upStarId)
-- end
-- end
end
end
function this.PracticeGuideFun()
table.insert(_FuncGuideList, 102500)
this.CheckFuncGuide()
end
function this.OnLevelChange()
-- 首充引导特殊处理到十级开放
if PlayerManager.level == 10 then

View File

@ -85,6 +85,7 @@ function PracticeImprint:Refresh(isTop,isAni,func)
local data = self.allImprintData[i]
if not self.ImprintList[i] then
self.ImprintList[i] = newObject(self.ImprintPre)
self.ImprintList[i].transform.name = "ImprintPre"..i
self.ImprintList[i].transform:SetParent(self.Scrollgrid.transform)
self.ImprintList[i].transform.localScale = Vector3.one*0.9
self.ImprintList[i].transform.localPosition = Vector3.zero

View File

@ -84,6 +84,9 @@ function Practice:BindEvent()
Game.GlobalEvent:DispatchEvent(GameEvent.Player.OnChangeName)
if PracticeManager.PracticeBigLevel - oldBigLevel == 1 then
UIManager.OpenPanel(UIName.CongratulationPopup,CONGRATULATION_TYPE.Practice,XinXianConfig[PracticeManager.PracticeLevel])
if PracticeManager.PracticeBigLevel == 3 then
Game.GlobalEvent:DispatchEvent(GameEvent.Practice.PracticeGuide)
end
end
self:OnShow()
end)