using System; using UnityEngine; namespace HotUpdate.UI { /// Candy UI;旧启动配置中的其他主题值回退到 Candy。 public static class UiThemeCatalog { public const string Candy = "candy"; public static string Normalize(string theme) { if (string.IsNullOrWhiteSpace(theme)) return Candy; theme = theme.Trim().ToLowerInvariant(); if (theme == Candy) return Candy; Debug.LogWarning($"[UI] Unknown theme '{theme}', using candy."); return Candy; } public static string Resolve(string logicalName, string theme) { return logicalName; } } }