25 lines
473 B
C#
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;
|
|||
|
}
|