Ejemplo n.º 1
0
 // Start is called before the first frame update
 void Start()
 {
     foreach (GameObject el in input)
     {
         if (el == null)
         {
             screens.Add(null);
             continue;
         }
         ISwitchable found = el.GetComponent <ISwitchable>();
         if (found != null)
         {
             screens.Add(found);
             found.Close();
         }
     }
     screens[active].Open();
 }
Ejemplo n.º 2
0
 public void On()
 {
     _appliance.Close();
 }