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

24 lines
433 B
C#
Raw Normal View History

2025-09-05 19:46:21 +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-04-02 19:28:28 +08:00
internal static ISceneModule _scene;
2025-03-20 20:47:26 +08:00
}