TH1/Unity/Assets/Scripts/TH1_Logic/Rersource/ResourceManager.cs
2025-08-18 23:16:13 +08:00

28 lines
640 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
* @Author: 白哉
* @Description: 资源管理类
* @Date: 2025年04月24日 星期四 11:04:22
* @Modify:
*/
using YooAsset;
namespace Logic.Rersource
{
public class ResourceManager
{
public void Init()
{
// 初始化资源系统
YooAssets.Initialize();
// 创建默认的资源包
var package = YooAssets.CreatePackage("DefaultPackage");
// 设置该资源包为默认的资源包可以使用YooAssets相关加载接口加载该资源包内容。
YooAssets.SetDefaultPackage(package);
}
}
}