connections
This commit is contained in:
6
Gui.cs
6
Gui.cs
@@ -1,13 +1,13 @@
|
||||
using Godot;
|
||||
using NodeWar.scripts;
|
||||
using NodeWar;
|
||||
|
||||
public partial class Gui : Control
|
||||
{
|
||||
private Label _infoLabel;
|
||||
|
||||
|
||||
public override void _Ready()
|
||||
{
|
||||
_infoLabel = GetNode<Label>("%InfoLabel");
|
||||
EventBus.Instance.SelectionChanged += text => _infoLabel.Text = text;
|
||||
Autoloads.EventBus.SelectionChanged += text => _infoLabel.Text = text;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user