Пример #1
0
 public static void RemoveExtendEvent(LuaBehaviour.UiExtendEventDeal func)
 {
     for (int i = 0; i < LuaBehaviour.extendEventDeals.Count; i++)
     {
         if (LuaBehaviour.extendEventDeals[i] == func)
         {
             LuaBehaviour.extendEventDeals.RemoveAt(i);
             return;
         }
     }
 }
Пример #2
0
 public static void AddExtendEvent(LuaBehaviour.UiExtendEventDeal func)
 {
     for (int i = 0; i < LuaBehaviour.extendEventDeals.Count; i++)
     {
         if (LuaBehaviour.extendEventDeals[i] == func)
         {
             return;
         }
     }
     LuaBehaviour.extendEventDeals.Add(func);
 }