/// <summary> /// Adds New Train Car Event invoker /// </summary> /// <param name="invoker">invoker</param> public static void AddInitNewTraincarInvoker(BlastDoor invoker) { // add invoker to list and add all listeners to invoker InitNewTraincarInvokers.Add(invoker); foreach (UnityAction listener in InitNewTraincarListeners) { invoker.AddInitNewTraincarListener(listener); } }