Add independent review reports for Minimap system (Rounds 8, 9, and 26)
- Round 8 report highlights improvements in architecture, editor usability, and data robustness, with a total score of 80/100. - Round 9 report focuses on editor extension capabilities, identifying issues with room data indexing and layout editing, resulting in a score of 76/100. - Round 26 report evaluates the system against commercial standards, noting new issues and confirming previous fixes, with a score of 95.8/100.
This commit is contained in:
38
Assets/_Game/Scripts/World/Map/MinimapInputHandler.cs
Normal file
38
Assets/_Game/Scripts/World/Map/MinimapInputHandler.cs
Normal file
@@ -0,0 +1,38 @@
|
||||
using UnityEngine;
|
||||
using BaseGames.Input;
|
||||
|
||||
namespace BaseGames.World.Map
|
||||
{
|
||||
/// <summary>
|
||||
/// 小地图 HUD 输入处理器(R13-N3)。
|
||||
/// 挂在与 MinimapHUD 相同的 GameObject 上,负责将 InputReaderSO 事件路由到 MinimapHUD。
|
||||
/// <list type="bullet">
|
||||
/// <item>CycleMinimapZoomEvent → MinimapHUD.CycleZoom()(循环切换视野半径档位)</item>
|
||||
/// </list>
|
||||
/// 输入动作在 InputActionAsset 的 UI Map 中命名为 "CycleMinimapZoom";
|
||||
/// 若动作不存在,InputReaderSO 会打印 Warning 并安全跳过,不影响运行。
|
||||
/// </summary>
|
||||
[RequireComponent(typeof(MinimapHUD))]
|
||||
public class MinimapInputHandler : MonoBehaviour
|
||||
{
|
||||
[SerializeField] private InputReaderSO _inputReader;
|
||||
|
||||
private MinimapHUD _hud;
|
||||
|
||||
private void Awake() => _hud = GetComponent<MinimapHUD>();
|
||||
|
||||
private void OnEnable()
|
||||
{
|
||||
if (_inputReader != null)
|
||||
_inputReader.CycleMinimapZoomEvent += OnCycleZoom;
|
||||
}
|
||||
|
||||
private void OnDisable()
|
||||
{
|
||||
if (_inputReader != null)
|
||||
_inputReader.CycleMinimapZoomEvent -= OnCycleZoom;
|
||||
}
|
||||
|
||||
private void OnCycleZoom() => _hud?.CycleZoom();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user