input/output + refactoring

This commit is contained in:
klemek
2020-12-16 19:00:40 +01:00
parent eeaf611158
commit 1a70942e8e
23 changed files with 1272 additions and 52 deletions
+57
View File
@@ -0,0 +1,57 @@
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
namespace UntitledLogicGame.Workspace
{
public class OutputGate : Gate
{
#region Unity Properties
#endregion
#region Public Properties
public bool State {
get
{
return InputAnchor.Activated;
}
}
#endregion
#region Private Properties
private Anchor InputAnchor {
get
{
if (_inputAnchor == null)
_inputAnchor = Anchors.First(g => g.Name == "A");
return _inputAnchor;
}
}
private Anchor _inputAnchor;
#endregion
#region Unity Methods
private void Start()
{
Utils.RandomName("Output", gameObject);
}
#endregion
#region Public Methods
#endregion
#region Private Methods
#endregion
}
}