Add rank, friends, fishing, and camp treasure with T2 studio models and skill presentation.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using AIGame.EditorTools;
|
||||
using UnityEditor;
|
||||
|
||||
public static class BuildFriends
|
||||
{
|
||||
public static string Build()
|
||||
{
|
||||
if (EditorApplication.isPlaying) throw new Exception("Build the friends page in Edit Mode");
|
||||
string repo = Directory.GetParent(UnityEngine.Application.dataPath).Parent.FullName;
|
||||
if (string.IsNullOrEmpty(JsonUIPrefabBuilder.BuildFromJsonFile(Path.Combine(repo, "Doc/UIPrefabCreater/UI_PrototypeFriends.json")))) throw new Exception("Friends prefab failed");
|
||||
if (string.IsNullOrEmpty(JsonUIPrefabBuilder.BuildFromJsonFile(Path.Combine(repo, "Doc/UIPrefabCreater/UI_MainHUD.json")))) throw new Exception("Home button failed");
|
||||
SetupUiBundleCollector.Setup();
|
||||
AssetDatabase.SaveAssets();
|
||||
return "Built the friends page";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user