【a】可视化剧本编辑器 10.StoryEditor

This commit is contained in:
mzh
2026-01-06 14:24:23 +08:00
parent f055116d4d
commit 2e8accfed8
80 changed files with 3145 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
using Cysharp.Threading.Tasks;
using rokid.armaz.module;
using Stary.Evo.StoryEditor;
using UnityEngine;
public class ResourceLoader : IResource
{
public UniTask<T> Load<T>(ResourcePathData pathData) where T : Object
{
return AMP.ResourceLoader.LoadAssetAsync<T>(pathData.packageID, pathData.path);
}
public UniTask<ResourcePathData> Save<T>(T asset, string packageID) where T : Object
{
ResourcePathData pathData = new();
pathData.packageID = packageID;
pathData.AddPath(asset.name);
return UniTask.FromResult(pathData);
}
}