From 61ca84365d8f8cb5fb4f3555d700b35f982b61a5 Mon Sep 17 00:00:00 2001 From: Joywayer Date: Mon, 20 Jul 2026 10:49:39 +0800 Subject: [PATCH] =?UTF-8?q?@=20feat(scaffold):=20ChaoFeng(Boss)=20?= =?UTF-8?q?=E6=92=9E=E5=A2=99=E6=A3=80=E6=B5=8B=E5=B1=82=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=20Platform+Wall?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 补齐 Boss——脚手架 PlaceChaoFeng 加 _wallMask=Platform+Wall;prefab 同步直接设值 (原 Nothing,_wallCheckDist=0.2>0 会触发 Awake 撞墙未配报错)。至此 E001-E006+ ChaoFeng 全部配好 _wallMask。 Co-Authored-By: Claude Opus 4.8 (1M context) @ --- .../Enemies/ChaoFeng/ENM_ChaoFeng.prefab | 34 ++++++++++++++----- .../Editor/Scene/SceneObjectPlacerTool.cs | 1 + 2 files changed, 26 insertions(+), 9 deletions(-) diff --git a/Assets/_Game/Prefabs/Enemies/ChaoFeng/ENM_ChaoFeng.prefab b/Assets/_Game/Prefabs/Enemies/ChaoFeng/ENM_ChaoFeng.prefab index 99aa760c..68f813f4 100644 --- a/Assets/_Game/Prefabs/Enemies/ChaoFeng/ENM_ChaoFeng.prefab +++ b/Assets/_Game/Prefabs/Enemies/ChaoFeng/ENM_ChaoFeng.prefab @@ -154,6 +154,11 @@ MonoBehaviour: m_EditorClassIdentifier: _defaultSource: {fileID: 11400000, guid: caae9c7600281fe4e8d8637fa3fd2ca1, type: 2} _hitCooldown: 0.1 + _hitMode: 0 + _hitInterval: 0.5 + _targetLayers: + serializedVersion: 2 + m_Bits: 4294967295 _id: _rivalHitBoxMask: serializedVersion: 2 @@ -372,6 +377,11 @@ MonoBehaviour: m_EditorClassIdentifier: _defaultSource: {fileID: 11400000, guid: caae9c7600281fe4e8d8637fa3fd2ca1, type: 2} _hitCooldown: 0.1 + _hitMode: 0 + _hitInterval: 0.5 + _targetLayers: + serializedVersion: 2 + m_Bits: 4294967295 _id: _rivalHitBoxMask: serializedVersion: 2 @@ -468,6 +478,11 @@ MonoBehaviour: m_EditorClassIdentifier: _defaultSource: {fileID: 11400000, guid: caae9c7600281fe4e8d8637fa3fd2ca1, type: 2} _hitCooldown: 0.1 + _hitMode: 0 + _hitInterval: 0.5 + _targetLayers: + serializedVersion: 2 + m_Bits: 4294967295 _id: _rivalHitBoxMask: serializedVersion: 2 @@ -564,6 +579,11 @@ MonoBehaviour: m_EditorClassIdentifier: _defaultSource: {fileID: 11400000, guid: caae9c7600281fe4e8d8637fa3fd2ca1, type: 2} _hitCooldown: 0.1 + _hitMode: 0 + _hitInterval: 0.5 + _targetLayers: + serializedVersion: 2 + m_Bits: 4294967295 _id: _rivalHitBoxMask: serializedVersion: 2 @@ -748,17 +768,9 @@ MonoBehaviour: _patrolZone: {fileID: 0} _onEnemyDied: {fileID: 11400000, guid: def849e2c5ec8204eae6b083b02307aa, type: 2} _onPlayerSpawned: {fileID: 11400000, guid: 7e2c7e614f6627b449a244ab44443adf, type: 2} - _btIdleTickInterval: 0.3 - _btPatrolTickInterval: 0.15 - _btAlertTickInterval: 0.08 - _btChaseTickInterval: 0.05 - _btCombatTickInterval: 0 _dbg_CurrentState: 0 - _dbg_AiPhase: 0 _dbg_HasPlayer: 0 _dbg_LastKnownPos: {x: 0, y: 0} - _dbg_BtTickInterval: 0 - _autoPlayPhaseAnimation: 1 _bossId: _onBossFightEnded: {fileID: 11400000, guid: f367dc6d9a2848241b54799ce37f7288, type: 2} _onBossPhaseChanged: {fileID: 11400000, guid: 9f49e575a92a7fb43af755ba1840abd2, type: 2} @@ -854,7 +866,9 @@ MonoBehaviour: _onHitLight: {fileID: 0} _onHitMedium: {fileID: 0} _onHitHeavy: {fileID: 0} + _hitPositionMode: 0 _onTakeHit: {fileID: 0} + _takeHitPositionMode: 0 _onDeath: {fileID: 0} --- !u!114 &8088437629491012474 MonoBehaviour: @@ -888,7 +902,7 @@ MonoBehaviour: _ledgeCheckDownDist: 0.4 _wallMask: serializedVersion: 2 - m_Bits: 0 + m_Bits: 8388864 _dbg_FacingDirection: 0 _dbg_VelocityX: 0 _dbg_VelocityY: 0 @@ -978,6 +992,8 @@ MonoBehaviour: _groundMask: serializedVersion: 2 m_Bits: 4294967295 + _repathTargetThreshold: 0.5 + _repathMinInterval: 0.25 --- !u!114 &3437191888218430966 MonoBehaviour: m_ObjectHideFlags: 0 diff --git a/Assets/_Game/Scripts/Editor/Scene/SceneObjectPlacerTool.cs b/Assets/_Game/Scripts/Editor/Scene/SceneObjectPlacerTool.cs index 7c06bc87..ca3d11c4 100644 --- a/Assets/_Game/Scripts/Editor/Scene/SceneObjectPlacerTool.cs +++ b/Assets/_Game/Scripts/Editor/Scene/SceneObjectPlacerTool.cs @@ -1201,6 +1201,7 @@ namespace BaseGames.Editor AssignLayerMask(movement, "_groundMask", new[] { "Platform", "OneWayPlatform", "MovingOneWayPlatform", "MidHeightOneWayPlatform" }, report); + AssignLayerMask(movement, "_wallMask", new[] { "Platform", "Wall" }, report); // 撞墙判定层(策划可调) // 收集 BossSkillSO 并赋给执行器(计划技能集) var skillAssets = new System.Collections.Generic.List();