2025-09-05 20:06:35 +08:00
|
|
|
|
using AlicizaX.Resource.Runtime;
|
2025-04-28 19:45:45 +08:00
|
|
|
|
using AlicizaX;
|
2025-01-23 19:06:48 +08:00
|
|
|
|
|
|
|
|
|
|
public static partial class GameApp
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 获取Asset组件。
|
|
|
|
|
|
/// </summary>
|
2025-04-28 19:45:45 +08:00
|
|
|
|
public static IResourceModule Resource
|
2025-01-23 19:06:48 +08:00
|
|
|
|
{
|
|
|
|
|
|
get
|
|
|
|
|
|
{
|
|
|
|
|
|
if (_resource == null)
|
|
|
|
|
|
{
|
2025-04-28 19:45:45 +08:00
|
|
|
|
_resource = ModuleSystem.GetModule<IResourceModule>();
|
2025-01-23 19:06:48 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return _resource;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2025-04-28 19:45:45 +08:00
|
|
|
|
internal static IResourceModule _resource;
|
2025-01-23 19:06:48 +08:00
|
|
|
|
}
|