using Godot; using GodotHostTest.Helpers; using GodotHostTest.Interfaces; using Microsoft.Extensions.Logging; using OwofGames.AetherBind; using R3; namespace GodotHostTest.Game.Projectile; public partial class Projectile : Node2D { [Inject] private ILogger _logger = null!; [Inject] private ITargetSpawner _targetSpawner = null!; // Called when the node enters the scene tree for the first time. public override void _Ready() { _targetSpawner.TargetSpawned .Subscribe(_ => _logger.LogInformation("Projectile got informed of target spawning")).AddTo(this); } }