Skip to content

Commit 4ad4b17

Browse files
committed
Fix editor for units
1 parent 6726301 commit 4ad4b17

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

TurnBase.KaNoBu.Godot/Presentation/WaveGenerator.cs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
using Godot;
2-
using System.Collections.Generic;
3-
using System.Globalization;
42

5-
public class WaveGenerator : Node2D
3+
[Tool]
4+
[SceneReference("WaveGenerator.tscn")]
5+
public partial class WaveGenerator
66
{
77
[Export]
88
public Texture WaveItem;
@@ -24,6 +24,12 @@ public class WaveGenerator : Node2D
2424

2525
private float timeSinceLastWave = float.MinValue;
2626

27+
public override void _Ready()
28+
{
29+
base._Ready();
30+
this.FillMembers();
31+
}
32+
2733
public override async void _Process(float delta)
2834
{
2935
base._Process(delta);

0 commit comments

Comments
 (0)