AlicizaX/Client/Packages/com.alicizax.unity.entry/Runtime/GameApp.Resource.cs
陈思海 eb38f67131 init
2025-01-23 19:06:48 +08:00

25 lines
473 B
C#

using AlicizaX.Resource.Runtime;
using AlicizaX.Runtime;
public static partial class GameApp
{
/// <summary>
/// 获取Asset组件。
/// </summary>
public static ResourceComponent Resource
{
get
{
if (_resource == null)
{
_resource = GameEntry.GetComponent<ResourceComponent>();
}
return _resource;
}
}
private static ResourceComponent _resource;
}