Пример #1
0
 /// <summary>
 /// Adds given script as invoker of "Key Encoded" event
 /// </summary>
 /// <param name="invoker">new invoker of event</param>
 public static void AddKeyEncodedInvoker(Enigma invoker)
 {
     // add invoker to list and add all listeners to this invoker
     keyEncodedInvokers.Add(invoker);
     foreach (UnityAction <char> listener in keyEncodedListeners)
     {
         invoker.AddKeyEncodedListener(listener);
     }
 }