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