Ejemplo n.º 1
0
 protected static void AddEvent(UnityEvent <T> unityEvent, ref int index, UnityAction <T> unityAction)
 {
     if (index == -1)
     {
         UnityEventTools.AddPersistentListener(unityEvent, unityAction);
         index = unityEvent.GetPersistentEventCount() - 1;
     }
     else
     {
         UnityEventTools.RegisterPersistentListener(unityEvent, index, unityAction);
     }
 }
Ejemplo n.º 2
0
 public static void RegisterPersistentListener(this UnityEvent self, int index, UnityAction unityAction)
 {
     UnityEventTools.RegisterPersistentListener(self, index, unityAction);
 }
Ejemplo n.º 3
0
 public static void RegisterPersistentListener <T0, T1>(this UnityEvent <T0, T1> self, int index, UnityAction <T0, T1> unityAction)
 {
     UnityEventTools.RegisterPersistentListener(self, index, unityAction);
 }