Add prototype gameplay loop with character/battlefield assets and server game APIs.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using AIGame.EditorTools;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
|
||||
public static class BuildProgression
|
||||
{
|
||||
public static string Build()
|
||||
{
|
||||
if (EditorApplication.isPlaying) throw new Exception("Build UI in Edit Mode");
|
||||
string repo = Directory.GetParent(Application.dataPath).Parent.FullName;
|
||||
foreach (var screen in new[] { "Stages", "Pinball", "Capture", "Pets", "Formation", "Battle", "Camp", "Build", "Tasks", "Signin", "Bag", "Shop", "Mail", "Chest", "Settings" })
|
||||
{
|
||||
string output = JsonUIPrefabBuilder.BuildFromJsonFile(Path.Combine(repo, "Doc/UIPrefabCreater/UI_Prototype" + screen + ".json"));
|
||||
if (string.IsNullOrEmpty(output)) throw new Exception("Failed UI_Prototype" + screen);
|
||||
}
|
||||
SetupUiBundleCollector.Setup();
|
||||
return "Generated sixteen gameplay UI prefabs from JSON; reused authored models, sprites and nine-slices.";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user