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

25 lines
433 B
C#
Raw Normal View History

2025-03-24 13:17:07 +08:00
using AlicizaX;
2025-02-07 16:09:00 +08:00
using AlicizaX.Scene.Runtime;
public static partial class GameApp
{
/// <summary>
/// 获取场景组件。
/// </summary>
2025-03-20 20:47:26 +08:00
public static ISceneModule Scene
2025-02-07 16:09:00 +08:00
{
get
{
if (_scene == null)
{
2025-03-20 20:47:26 +08:00
_scene = ModuleSystem.GetModule<ISceneModule>();
2025-02-07 16:09:00 +08:00
}
return _scene;
}
}
2025-03-20 20:47:26 +08:00
private static ISceneModule _scene;
2025-02-07 16:09:00 +08:00
2025-03-20 20:47:26 +08:00
}