AlicizaX/Client/Packages/com.alicizax.unity.entry/Runtime/GameApp.Resource.cs

25 lines
473 B
C#
Raw Normal View History

2025-01-23 19:06:48 +08:00

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;
}