dynamic loading of gate prefabs

This commit is contained in:
klemek
2020-12-19 20:02:15 +01:00
parent 205a663e07
commit 972a689d9c
61 changed files with 5685 additions and 7662 deletions
+3 -3
View File
@@ -23,7 +23,7 @@ namespace UntitledLogicGame.Workspace
get
{
if (_outputAnchor == null)
_outputAnchor = Anchors.First(g => g.Name == "Q");
_outputAnchor = Anchors.FirstOrDefault(g => g.Name == "Q");
return _outputAnchor;
}
}
@@ -55,8 +55,8 @@ namespace UntitledLogicGame.Workspace
{
if ((Sprite.Hovering || OutputAnchor.Hovering) && PointerManager.Instance.DoubleClick())
{
State = !State;
OutputAnchor.Activated = State;
State = !State;
OutputAnchor.Activated = State;
}
}