修复判定线问题
This commit is contained in:
@@ -50,6 +50,15 @@ public class TrackTouchInput : MonoBehaviour
|
||||
}
|
||||
}
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
// 【多点触控根因修复】若 multiTouchEnabled 为 false,Input.touchCount 永远 ≤1,
|
||||
// 同时按多条轨道时只会报告一个触点 → 只能触发一个轨道。强制开启多点触控。
|
||||
// simulateMouseWithTouches 关掉:避免触摸被合成成鼠标事件,与真实多指冲突。
|
||||
Input.multiTouchEnabled = true;
|
||||
Input.simulateMouseWithTouches = false;
|
||||
}
|
||||
|
||||
private void Update()
|
||||
{
|
||||
var im = InputManager.Instance;
|
||||
|
||||
Reference in New Issue
Block a user