Files
godot-host-test/Game/Root.cs
T
redglow d689e9ea1d .
2026-07-17 15:14:51 +02:00

15 lines
353 B
C#

using Godot;
using GodotHostTest.GodotDI;
namespace GodotHostTest.Game;
public partial class Root : Node2D
{
[Inject] private readonly ISceneInstantiator _sceneInstantiator = null!;
[Export] private PackedScene _levelScene = null!;
public override void _Ready()
{
AddChild(_sceneInstantiator.Instantiate(_levelScene));
}
}