好多新内容

This commit is contained in:
2026-07-22 05:35:53 +08:00
parent b5d1cdcbc5
commit 15649d02f8
128 changed files with 5956 additions and 673 deletions
@@ -37,11 +37,27 @@ public class TrackTouchZone : MonoBehaviour
}
}
// 全部启用中的 zone 注册表:供 TrackTouchInput 在"点到轨道间缝隙/边缘"时做最近轨道兜底,
// 无需改场景碰撞体尺寸即可消除轨道间空隙导致的漏点。
private static readonly System.Collections.Generic.List<TrackTouchZone> _all =
new System.Collections.Generic.List<TrackTouchZone>();
public static System.Collections.Generic.IReadOnlyList<TrackTouchZone> All => _all;
private void Awake()
{
_collider = GetComponent<Collider2D>();
}
private void OnEnable()
{
if (!_all.Contains(this)) _all.Add(this);
}
private void OnDisable()
{
_all.Remove(this);
}
private void LateUpdate()
{
// 在所有晃动逻辑(Update)之后对齐,避免落后一帧。