主城报错修改提交
parent
ead8668479
commit
cade21c700
|
@ -918,6 +918,12 @@ function this.CheckScreenRightRedPoint()
|
||||||
if UIManager.camera ==nil then
|
if UIManager.camera ==nil then
|
||||||
return
|
return
|
||||||
end
|
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)
|
pos1=RectTransformUtility.WorldToScreenPoint(UIManager.camera,this.btnPokemon.transform.position)
|
||||||
pos2=RectTransformUtility.WorldToScreenPoint(UIManager.camera,this.btnColorfulWorld.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
|
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
|
||||||
|
|
Loading…
Reference in New Issue