com.alicizax.unity.entry/Runtime/GameApp.Resource.cs

25 lines
473 B
C#
Raw Normal View History

2025-02-07 16:09:00 +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;
}