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

28 lines
469 B
C#
Raw Normal View History

2025-09-02 16:30:55 +08:00
#if ALICIZAX_SCENE_SUPPORT
using AlicizaX;
2025-01-23 19:06:48 +08:00
using AlicizaX.Scene.Runtime;
public static partial class GameApp
{
/// <summary>
/// 获取场景组件。
/// </summary>
2025-04-28 19:45:45 +08:00
public static ISceneModule Scene
2025-01-23 19:06:48 +08:00
{
get
{
if (_scene == null)
{
2025-04-28 19:45:45 +08:00
_scene = ModuleSystem.GetModule<ISceneModule>();
2025-01-23 19:06:48 +08:00
}
return _scene;
}
}
2025-04-28 19:45:45 +08:00
internal static ISceneModule _scene;
2025-01-23 19:06:48 +08:00
2025-04-28 19:45:45 +08:00
}
2025-09-02 16:30:55 +08:00
#endif