19 lines
602 B
C#
19 lines
602 B
C#
using Godot;
|
|
using GodotHostTest.AetherBind;
|
|
using GodotHostTest.Game.Target;
|
|
using GodotHostTest.Interfaces;
|
|
using OwofGames.GodotLume;
|
|
using ServiceSource = GodotHostTest.AetherBind.ServiceSource;
|
|
|
|
namespace GodotHostTest.Game.Level;
|
|
|
|
public partial class LevelServiceSource : ServiceSource
|
|
{
|
|
[Export] private TargetSpawner _targetSpawner = null!;
|
|
|
|
protected override void OnScopeCreated(IProvider serviceProvider)
|
|
{
|
|
serviceProvider.Get<IValueSetter<ITargetCollector>>().Set(_targetSpawner);
|
|
serviceProvider.Get<IValueSetter<ITargetSpawner>>().Set(_targetSpawner);
|
|
}
|
|
} |