实现移动平台乘客接口,优化乘客跟随逻辑

This commit is contained in:
2026-05-21 17:09:06 +08:00
parent fcd3e2dcdd
commit 247a218182
5 changed files with 122 additions and 31 deletions

View File

@@ -804,6 +804,7 @@ namespace BaseGames.Editor
MovingPlatform platform = GetOrAddComponent<MovingPlatform>(go);
AssignReference(platform, "_passengerSensor", sensorCol, report);
AssignLayerMask(platform, "_passengerLayer", new[] { "Player", "Enemy" }, report);
AssignObjectArray(platform, "_wayPoints", new Object[] { wpA, wpB }, report);
report.Add("WaypointA / WaypointB 为移动端点,可将其拖出平台并在场景中调整位置。");