//得到hit在屏幕的像素位置
tarPos = Camera.main.WorldToScreenPoint (hit.point);
if(!tar.activeSelf)
tar.SetActive(true);
//准星在屏幕的位置
//安卓不能用resolution
re.anchoredPosition = new Vector2 (tarPos.xresolutions[0].width/Screen.width - resolutions[0].width/2,tarPos.y2*resolutions[0].height/Screen.height-resolutions[0].height/2);
动态准星
最新推荐文章于 2025-03-09 17:45:02 发布