【修行】第二短引导
parent
d835687e8c
commit
8d4d1aa777
|
@ -468,5 +468,9 @@ GameEvent = {
|
||||||
--心魔试炼
|
--心魔试炼
|
||||||
MonsterCamp={
|
MonsterCamp={
|
||||||
UpdatePri = "MonsterCamp.UpdatePri",
|
UpdatePri = "MonsterCamp.UpdatePri",
|
||||||
|
},
|
||||||
|
--修行引导
|
||||||
|
Practice={
|
||||||
|
PracticeGuide = "Practice.PracticeGuide"
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -16,6 +16,7 @@ function this.Initialize()
|
||||||
Game.GlobalEvent:AddEvent(GameEvent.FunctionCtrl.OnFunctionOpen, this.OnFunctionOpen)
|
Game.GlobalEvent:AddEvent(GameEvent.FunctionCtrl.OnFunctionOpen, this.OnFunctionOpen)
|
||||||
Game.GlobalEvent:AddEvent(GameEvent.Player.OnLevelChange, this.OnLevelChange)
|
Game.GlobalEvent:AddEvent(GameEvent.Player.OnLevelChange, this.OnLevelChange)
|
||||||
Game.GlobalEvent:AddEvent(GameEvent.HongMeng.HongMengGuide,this.HongMengGuideFun)
|
Game.GlobalEvent:AddEvent(GameEvent.HongMeng.HongMengGuide,this.HongMengGuideFun)
|
||||||
|
Game.GlobalEvent:AddEvent(GameEvent.Practice.PracticeGuide,this.PracticeGuideFun)
|
||||||
end
|
end
|
||||||
this.IsFirstOpenHarmonyBei = false
|
this.IsFirstOpenHarmonyBei = false
|
||||||
function this.HongMengGuideFun(OnOff)
|
function this.HongMengGuideFun(OnOff)
|
||||||
|
@ -32,14 +33,17 @@ function this.HongMengGuideFun(OnOff)
|
||||||
-- if HarmonyManager.hongmengGuards[i].heroId ~= "" then
|
-- if HarmonyManager.hongmengGuards[i].heroId ~= "" then
|
||||||
-- -- body
|
-- -- body
|
||||||
-- local _heroData = HeroManager.GetSingleHeroData(HarmonyManager.hongmengGuards[i].heroId)
|
-- local _heroData = HeroManager.GetSingleHeroData(HarmonyManager.hongmengGuards[i].heroId)
|
||||||
|
|
||||||
-- HeroManager.UpdateSingleHeroDatas(_heroData.dynamicId, 1, _heroData.star, 0, _heroData.upStarId)
|
-- HeroManager.UpdateSingleHeroDatas(_heroData.dynamicId, 1, _heroData.star, 0, _heroData.upStarId)
|
||||||
|
|
||||||
-- end
|
-- end
|
||||||
-- end
|
-- end
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function this.PracticeGuideFun()
|
||||||
|
table.insert(_FuncGuideList, 102500)
|
||||||
|
this.CheckFuncGuide()
|
||||||
|
end
|
||||||
|
|
||||||
function this.OnLevelChange()
|
function this.OnLevelChange()
|
||||||
-- 首充引导特殊处理到十级开放
|
-- 首充引导特殊处理到十级开放
|
||||||
if PlayerManager.level == 10 then
|
if PlayerManager.level == 10 then
|
||||||
|
|
|
@ -85,6 +85,7 @@ function PracticeImprint:Refresh(isTop,isAni,func)
|
||||||
local data = self.allImprintData[i]
|
local data = self.allImprintData[i]
|
||||||
if not self.ImprintList[i] then
|
if not self.ImprintList[i] then
|
||||||
self.ImprintList[i] = newObject(self.ImprintPre)
|
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:SetParent(self.Scrollgrid.transform)
|
||||||
self.ImprintList[i].transform.localScale = Vector3.one*0.9
|
self.ImprintList[i].transform.localScale = Vector3.one*0.9
|
||||||
self.ImprintList[i].transform.localPosition = Vector3.zero
|
self.ImprintList[i].transform.localPosition = Vector3.zero
|
||||||
|
|
|
@ -84,6 +84,9 @@ function Practice:BindEvent()
|
||||||
Game.GlobalEvent:DispatchEvent(GameEvent.Player.OnChangeName)
|
Game.GlobalEvent:DispatchEvent(GameEvent.Player.OnChangeName)
|
||||||
if PracticeManager.PracticeBigLevel - oldBigLevel == 1 then
|
if PracticeManager.PracticeBigLevel - oldBigLevel == 1 then
|
||||||
UIManager.OpenPanel(UIName.CongratulationPopup,CONGRATULATION_TYPE.Practice,XinXianConfig[PracticeManager.PracticeLevel])
|
UIManager.OpenPanel(UIName.CongratulationPopup,CONGRATULATION_TYPE.Practice,XinXianConfig[PracticeManager.PracticeLevel])
|
||||||
|
if PracticeManager.PracticeBigLevel == 3 then
|
||||||
|
Game.GlobalEvent:DispatchEvent(GameEvent.Practice.PracticeGuide)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
self:OnShow()
|
self:OnShow()
|
||||||
end)
|
end)
|
||||||
|
|
Loading…
Reference in New Issue