fix: 摄像机切换移到AudioManager+ping高度用bounds.max.y

- 摄像机协程从TouchPositionHandler移到AudioManager上(避免point隐藏后被杀)
- TouchPositionHandler改成调用AudioManager.SwitchToCamera3Smooth
- ping边框Y用_meshRenderer.bounds.max.y+0.02
This commit is contained in:
yangbear
2026-07-03 14:19:37 +08:00
parent dd3eb605b5
commit bf683d77b3
3 changed files with 48 additions and 42 deletions
@@ -56,7 +56,7 @@ public class PingClickHandler : MonoBehaviour
Bounds b;
if (_meshRenderer != null) b = _meshRenderer.bounds;
else b = new Bounds(transform.position, new Vector3(0.3f, 0.01f, 0.3f));
float y = transform.position.y + 0.1f;
float y = _meshRenderer != null ? _meshRenderer.bounds.max.y + 0.02f : transform.position.y + 0.1f;
Vector3 p0 = new Vector3(b.min.x, y, b.min.z);
Vector3 p1 = new Vector3(b.min.x, y, b.max.z);
Vector3 p2 = new Vector3(b.max.x, y, b.max.z);