fix
This commit is contained in:
@@ -3,7 +3,6 @@ using Godot;
|
||||
|
||||
namespace NodeWar;
|
||||
|
||||
[Singleton]
|
||||
public partial class BuildManager : Node
|
||||
{
|
||||
private bool Building { get; set; }
|
||||
@@ -12,6 +11,13 @@ public partial class BuildManager : Node
|
||||
|
||||
private Dictionary<NoduleConnection, Root> NoduleConnections { get; set; } = new();
|
||||
|
||||
public static BuildManager Instance { get; private set; }
|
||||
|
||||
public override void _Ready()
|
||||
{
|
||||
Instance = this;
|
||||
}
|
||||
|
||||
public override void _Process(double delta)
|
||||
{
|
||||
if (Input.IsActionJustPressed(MyInput.Build) && !Building)
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
[ext_resource type="Script" uid="uid://cmcnly8kwwjia" path="res://Main.cs" id="1_272bh"]
|
||||
[ext_resource type="Script" uid="uid://rirna2vebukw" path="res://addons/strategy_cam/strategy_camera.gd" id="2_0xm2m"]
|
||||
[ext_resource type="Script" uid="uid://c2ufhsf60fl83" path="res://BuildManager.cs" id="2_5vw27"]
|
||||
[ext_resource type="Script" uid="uid://de3jpss66xjfh" path="res://addons/curved_lines_2d/scalable_vector_shape_2d.gd" id="3_lquwl"]
|
||||
[ext_resource type="Script" uid="uid://dlbv4pit17dnu" path="res://addons/curved_lines_2d/scalable_arc.gd" id="4_7mycd"]
|
||||
[ext_resource type="PackedScene" uid="uid://b1a13w4ckxnub" path="res://gui.tscn" id="4_272bh"]
|
||||
@@ -22,6 +23,9 @@ script = ExtResource("5_272bh")
|
||||
[node name="Main" type="Node2D" unique_id=866253780]
|
||||
script = ExtResource("1_272bh")
|
||||
|
||||
[node name="BuildManager" type="Node" parent="." unique_id=582061924]
|
||||
script = ExtResource("2_5vw27")
|
||||
|
||||
[node name="CanvasLayer" type="CanvasLayer" parent="." unique_id=1010925224]
|
||||
|
||||
[node name="GUI" parent="CanvasLayer" unique_id=1209092314 instance=ExtResource("4_272bh")]
|
||||
|
||||
Reference in New Issue
Block a user