v11 全量评审:修复 TD-13 至 TD-17
- TD-13: IQuestManager.CompleteQuest 改用 IRewardTarget,移除 using BaseGames.Player - TD-14: HurtFlashController 缓存 WaitForSeconds(_waitForFlash 字段) - TD-16: LiquidType 枚举迁移至 BaseGames.Core.Events;LiquidEvent.LiquidType 改为枚举直接比较 - TD-17: DeathScreenController 移除失效的 _onPlayerDied 订阅,改为 OnEnable 直接启动延迟显示 影响文件: IQuestManager.cs / HurtFlashController.cs / LiquidType.cs(迁移) / LiquidEvent.cs / LiquidZone.cs / WaterDangerState.cs / UnderwaterPostProcessingController.cs / UnderwaterAudioController.cs / DeathScreenController.cs 评审文档: Docs/Review/FrameworkReview_2026_May_v11.md(综合评分 9.30/10)
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
using UnityEngine;
|
||||
using UnityEngine.Audio;
|
||||
using BaseGames.Core.Events;
|
||||
using BaseGames.World.Liquid;
|
||||
|
||||
namespace BaseGames.Audio
|
||||
{
|
||||
@@ -34,13 +33,13 @@ namespace BaseGames.Audio
|
||||
|
||||
private void OnLiquidEntered(LiquidEvent evt)
|
||||
{
|
||||
if (evt.LiquidType == nameof(LiquidType.Water))
|
||||
if (evt.LiquidType == LiquidType.Water)
|
||||
EnterWater();
|
||||
}
|
||||
|
||||
private void OnLiquidExited(LiquidEvent evt)
|
||||
{
|
||||
if (evt.LiquidType == nameof(LiquidType.Water))
|
||||
if (evt.LiquidType == LiquidType.Water)
|
||||
ExitWater();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user