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