UnityTowerDefense/Assets/_Project/Scripts/UI
Matt F bc557af624 Finish Phase 1.2 HUD: selection wiring, command grid context, build progress bar
- Builder.DisplayName: stub property ("Builder (P{n})") for portrait label; swaps
  to real player name when MatchState lands in Phase 1.3
- HUDController: subscribe SelectionState.OnSelectionChanged in OnEnable/OnDisable;
  HandleSelectionChanged drives portrait label + grays out command grid when nothing
  is selected; Start() seeds initial state in case builder auto-selected before Start
- BuildSiteVisual: ComputeProgressNormalized() public API ([0,1], safe on any client);
  OnNetworkSpawn spawns a non-networked BuildProgressBar child
- BuildProgressBar: new world-space uGUI Canvas bar; green while Constructing, yellow
  while Paused, hidden while Queued; billboards to Camera.main each LateUpdate;
  auto-destroyed when parent BuildSiteVisual despawns

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-11 18:03:34 -07:00
..
Minimap Minimap! 2026-05-10 22:26:55 -07:00
BuildProgressBar.cs Finish Phase 1.2 HUD: selection wiring, command grid context, build progress bar 2026-05-11 18:03:34 -07:00
HUDController.cs Finish Phase 1.2 HUD: selection wiring, command grid context, build progress bar 2026-05-11 18:03:34 -07:00
HUDController.cs.meta Adding HUD! 2026-05-08 21:40:15 -07:00
Minimap.meta Minimap! 2026-05-10 22:26:55 -07:00