Пример #1
0
 public static void TurnOn(IInteractiveAction type, IInteractiveAction[] _interactiveComponents)
 {
     foreach (IInteractiveAction interactive in _interactiveComponents)
     {
         if (interactive.GetType() == type.GetType())
         {
             interactive.TurnOn();
         }
     }
 }
Пример #2
0
 public void TurnOn(IInteractiveAction type)
 {
     foreach (IInteractiveAction interactive in interactiveComponents)
     {
         if (interactive.GetType() == type.GetType())
         {
             //interactive.TurnOn();
         }
     }
 }
Пример #3
0
 void Awake()
 {
     interactive = GetComponent <IInteractiveAction>();
 }