Exemplo n.º 1
0
 /// <summary>
 /// Adds given script as invoker of "Wiring Set" event
 /// </summary>
 /// <param name="invoker">new invoker of event</param>
 public static void AddWiringSetInvoker(Rotor invoker)
 {
     // add invoker to list and add all listeners to this invoker
     wiringSetInvokers.Add(invoker);
     foreach (UnityAction <int, RotorModel> listener in wiringSetListeners)
     {
         invoker.AddWiringSetListener(listener);
     }
 }