using System.Collections.Generic;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;
namespace TKS
{
/// 화면 HUD(uGUI · 코드 생성): 스테이지·턴·유닛 수·안내·선택 유닛 정보·미니맵·스킬 버튼(PD #1093 B)·스킬 발동 한 줄·결과 오버레이.
public class BattleHUD : MonoBehaviour
{
static readonly Color SkillReadyColor = new Color(0.72f, 0.2f, 0.14f, 0.94f);
static readonly Color SkillReservedColor = new Color(0.96f, 0.76f, 0.22f, 0.97f);
static readonly Color SkillOffColor = new Color(0.3f, 0.3f, 0.33f, 0.88f);
static readonly Color SkillPassiveOnlyColor = new Color(0.18f, 0.2f, 0.26f, 0.85f);
static readonly Color SkillLogColor = new Color(0.6f, 1f, 0.85f);
const float SkillLogSeconds = 3f;
BattleManager battle;
Camera uiCam;
CameraController camCtrl;
Text stageText;
Text turnText;
Text countText;
Text messageText;
Text hintText;
Text unitText;
GameObject resultOverlay;
Text resultTitle;
Text resultSub;
Unit selected;
Image skillPanel;
Text skillName;
Text skillState;
Text skillPassive;
Text skillLog;
Image minimapBg;
Image minimapView;
readonly Dictionary minimapDots = new Dictionary();
public void Build(BattleManager b, Camera cam, CameraController cc)
{
battle = b;
uiCam = cam;
camCtrl = cc;
var canvas = gameObject.AddComponent