.
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user