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; } } }
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); }