【主城小人层级】
parent
3c899d20d5
commit
8ef10cb100
|
@ -59,6 +59,7 @@ end
|
||||||
|
|
||||||
local isRefeshIcon = true
|
local isRefeshIcon = true
|
||||||
local curNPCList = {}
|
local curNPCList = {}
|
||||||
|
local addUpDateNum = 0--UpDate计数器
|
||||||
--初始化组件(用于子类重写)
|
--初始化组件(用于子类重写)
|
||||||
function this:InitComponent()
|
function this:InitComponent()
|
||||||
this.spLoader = SpriteLoader.New()
|
this.spLoader = SpriteLoader.New()
|
||||||
|
@ -1095,8 +1096,10 @@ function this:OnShow()
|
||||||
HarmonyManager.CheckRedPoinStatusUpTowerMainCityRed()
|
HarmonyManager.CheckRedPoinStatusUpTowerMainCityRed()
|
||||||
--山河试炼红点
|
--山河试炼红点
|
||||||
CheckRedPointStatus(RedPointType.FightLevelTrial)
|
CheckRedPointStatus(RedPointType.FightLevelTrial)
|
||||||
|
if addUpDateNum <= 0 then
|
||||||
FixedUpdateBeat:Add(this.OnUpdate, self)--长按方法注册
|
FixedUpdateBeat:Add(this.OnUpdate, self)--长按方法注册
|
||||||
|
addUpDateNum = addUpDateNum + 1
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
--
|
--
|
||||||
|
@ -1379,6 +1382,7 @@ function this:OnClose()
|
||||||
this.ChatTipView:StopCheck()
|
this.ChatTipView:StopCheck()
|
||||||
PatFaceManager.isLogin = false
|
PatFaceManager.isLogin = false
|
||||||
FixedUpdateBeat:Remove(this.OnUpdate, self)
|
FixedUpdateBeat:Remove(this.OnUpdate, self)
|
||||||
|
addUpDateNum = addUpDateNum - 1
|
||||||
PlayerPrefs.SetInt(PlayerManager.uid.."MainRightBarSetting",0)
|
PlayerPrefs.SetInt(PlayerManager.uid.."MainRightBarSetting",0)
|
||||||
|
|
||||||
for k,v in ipairs(activitys) do
|
for k,v in ipairs(activitys) do
|
||||||
|
|
Loading…
Reference in New Issue