// Update is called once per frame void Update() { foreach (var pin in OutputPins) { pin.SetState(InputPin.GetState()); } }
// Update is called once per frame void Update() { if (input.GetState()) { sr.sprite = OnSprite; } else { sr.sprite = OffSprite; } }