主城报错修改提交

dev_chengFeng
wangzhenxing 2021-05-21 18:13:21 +08:00
parent cade21c700
commit 9b336aeda9
1 changed files with 5 additions and 2 deletions

View File

@ -917,11 +917,14 @@ function this.CheckScreenRightRedPoint()
if UIManager.camera ==nil then
return
end
if not this.btnPokemon then
return
end
if this.btnPokemon.transform==nil then
if not this.btnPokemon.gameObject.transform then
return
end
if this.btnColorfulWorld.transform==nil then
if not this.btnColorfulWorld.gameObject.transform then
return
end
pos1=RectTransformUtility.WorldToScreenPoint(UIManager.camera,this.btnPokemon.transform.position)