feat: aetherbind, first source generator
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
using Godot;
|
||||
using GodotHostTest.AetherBind;
|
||||
using OwofGames.AetherBind;
|
||||
|
||||
namespace GodotHostTest.Game.Turret;
|
||||
|
||||
[Injected]
|
||||
public partial class Turret : Sprite2D
|
||||
{
|
||||
[Export] private PackedScene _projectilePackedScene = null!;
|
||||
[Inject] private ISceneInstantiator _sceneInstantiator = null!;
|
||||
|
||||
public override void _Ready()
|
||||
{
|
||||
GetTree().CreateTimer(1).Timeout += () => AddChild(_sceneInstantiator.Instantiate(_projectilePackedScene));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
uid://ce7gnp1lcrrdv
|
||||
Reference in New Issue
Block a user