实现移动平台乘客接口,优化乘客跟随逻辑
This commit is contained in:
@@ -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 为移动端点,可将其拖出平台并在场景中调整位置。");
|
||||
|
||||
Reference in New Issue
Block a user