This commit is contained in:
redglow
2026-07-17 15:14:51 +02:00
parent 5ad3af84b2
commit d689e9ea1d
9 changed files with 362 additions and 62 deletions
+15
View File
@@ -0,0 +1,15 @@
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));
}
}