【Debug】红点不消失问题debug日志添加

dev_chengFeng
gaoxin 2021-06-03 19:50:02 +08:00
parent 4077e33390
commit d20e47535e
1 changed files with 5 additions and 0 deletions

View File

@ -603,7 +603,10 @@ function this.SetAnim()
end end
-- 绑定红点 -- 绑定红点
this.bindred = 0
function this.BindRedPoint() function this.BindRedPoint()
this.bindred = this.bindred + 1
LogError("++主界面绑定红点:"..this.bindred)
BindRedPointObject(RedPointType.Mail, this.mailRedPoint) BindRedPointObject(RedPointType.Mail, this.mailRedPoint)
BindRedPointObject(RedPointType.DailyTaskMain, this.DailyRedPoint) BindRedPointObject(RedPointType.DailyTaskMain, this.DailyRedPoint)
BindRedPointObject(RedPointType.Shop, this.rpShangdian) BindRedPointObject(RedPointType.Shop, this.rpShangdian)
@ -626,6 +629,8 @@ function this.BindRedPoint()
end end
-- 绑定红点 -- 绑定红点
function this.ClearRedPoint() function this.ClearRedPoint()
this.bindred = this.bindred - 1
LogError("--主界面解绑红点:"..this.bindred)
ClearRedPointObject(RedPointType.Mail, this.mailRedPoint) ClearRedPointObject(RedPointType.Mail, this.mailRedPoint)
ClearRedPointObject(RedPointType.DailyTaskMain, this.DailyRedPoint) ClearRedPointObject(RedPointType.DailyTaskMain, this.DailyRedPoint)
ClearRedPointObject(RedPointType.Shop, this.rpShangdian) ClearRedPointObject(RedPointType.Shop, this.rpShangdian)