Ship the WeChat hot-update catalogs and the camp, TideWhale T2, UI atlas, and animation-lab work.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -66,14 +66,16 @@ public static class BuildT2Visuals
|
||||
}
|
||||
|
||||
/// <summary>Builds {Name}_T2.prefab for every partner whose accessory static exists; returns one line per partner.</summary>
|
||||
public static string BuildPrefabs()
|
||||
public static string BuildPrefabs() => BuildSelected(-1);
|
||||
public static string BuildTideWhale() => BuildSelected(9);
|
||||
static string BuildSelected(int pet)
|
||||
{
|
||||
if (EditorApplication.isPlaying) throw new Exception("Build T2 visuals in Edit Mode");
|
||||
var lines = new List<string>();
|
||||
var scene = EditorSceneManager.NewPreviewScene();
|
||||
try
|
||||
{
|
||||
foreach (var s in Specs)
|
||||
foreach (var s in Specs.Where(s => pet < 0 || s.Pet == pet))
|
||||
{
|
||||
var accessory = AssetDatabase.LoadAssetAtPath<GameObject>(AccessoryPath(s));
|
||||
if (accessory == null) { lines.Add(s.Name + ": accessory missing, skipped"); continue; }
|
||||
@@ -109,13 +111,15 @@ public static class BuildT2Visuals
|
||||
}
|
||||
|
||||
/// <summary>Nests each {Name}_T2 prefab as Heroes/HeroN/VisualT2 (inactive, same scale as Visual); runtime shows it for tier 2.</summary>
|
||||
public static string ApplyArena()
|
||||
public static string ApplyArena() => ApplySelected(-1);
|
||||
public static string ApplyTideWhale() => ApplySelected(9);
|
||||
static string ApplySelected(int pet)
|
||||
{
|
||||
if (EditorApplication.isPlaying) throw new Exception("Apply T2 visuals in Edit Mode");
|
||||
var root = PrefabUtility.LoadPrefabContents(Arena); var done = new List<int>();
|
||||
try
|
||||
{
|
||||
foreach (var s in Specs)
|
||||
foreach (var s in Specs.Where(s => pet < 0 || s.Pet == pet))
|
||||
{
|
||||
var t2 = AssetDatabase.LoadAssetAtPath<GameObject>(T2Path(s)); if (t2 == null) continue;
|
||||
var hero = root.transform.Find("Heroes/Hero" + s.Pet) ?? throw new Exception("Arena missing Hero" + s.Pet);
|
||||
@@ -131,6 +135,13 @@ public static class BuildT2Visuals
|
||||
return "Arena VisualT2 nested for heroes " + string.Join(",", done);
|
||||
}
|
||||
|
||||
public static string VerifyComplete()
|
||||
{
|
||||
foreach (var s in Specs)
|
||||
if (AssetDatabase.LoadAssetAtPath<GameObject>(T2Path(s)) == null) throw new Exception("Missing T2 " + s.Name);
|
||||
return Verify();
|
||||
}
|
||||
|
||||
public static string Verify()
|
||||
{
|
||||
var arena = AssetDatabase.LoadAssetAtPath<GameObject>(Arena); var lines = new List<string>();
|
||||
|
||||
Reference in New Issue
Block a user