多轮审查评估

This commit is contained in:
2026-05-13 09:19:54 +08:00
parent 458f344e83
commit 1b37297585
57 changed files with 3019 additions and 218 deletions

View File

@@ -18,11 +18,7 @@ namespace BaseGames.World.Liquid
[Header("区域标识(存档/跨系统识别)")]
[SerializeField] private string _zoneId;
[Header("伤害(Water 类型专用;Acid/Lava 由子节点 HazardZone 处理)")]
#pragma warning disable CS0414
[SerializeField] private bool _dealsDrowningDamage = false;
[SerializeField] private float _drowningDamagePerSecond = 5f;
#pragma warning restore CS0414
[Header("伤害Acid/Lava 由子节点 HazardZone 处理Water 类型溺死由 WaterDangerState 处理)")]
[Header("物理配置")]
[SerializeField] private LiquidPhysicsConfigSO _physicsConfig;

View File

@@ -31,7 +31,11 @@ namespace BaseGames.World.Liquid
BlendVolume(1f, _blendInDuration);
}
private void OnLiquidExited(LiquidEvent evt) => BlendVolume(0f, _blendOutDuration);
private void OnLiquidExited(LiquidEvent evt)
{
if (evt.LiquidType != LiquidType.Water) return;
BlendVolume(0f, _blendOutDuration);
}
private void BlendVolume(float target, float duration)
{