主城报错修改提交

dev_chengFeng
wangzhenxing 2021-05-21 18:00:25 +08:00
parent ead8668479
commit cade21c700
1 changed files with 6 additions and 0 deletions

View File

@ -918,6 +918,12 @@ function this.CheckScreenRightRedPoint()
if UIManager.camera ==nil then
return
end
if this.btnPokemon.transform==nil then
return
end
if this.btnColorfulWorld.transform==nil then
return
end
pos1=RectTransformUtility.WorldToScreenPoint(UIManager.camera,this.btnPokemon.transform.position)
pos2=RectTransformUtility.WorldToScreenPoint(UIManager.camera,this.btnColorfulWorld.transform.position)
if (pos1.x>Screen.width and RedpotManager.GetRedPointStatus(RedPointType.PokemonMainCity)==RedPointStatus.Show) or (pos2.x>Screen.width and RedpotManager.GetRedPointStatus(RedPointType.Vientiane)==RedPointStatus.Show) then