Exemplo n.º 1
0
 /// <summary>
 /// 释放LuaSimpleList,移除所有LuaItem
 /// </summary>
 /// <param name="eventHandler"></param>
 public static void ReleaseLuaSimpleList(LuaSimpleList eventHandler)
 {
     eventHandler.count = 0;
     eventHandler.Init();
 }
Exemplo n.º 2
0
 /// <summary>
 /// 强制移除Item
 /// </summary>
 /// <param name="eventHandler"></param>
 /// <param name="item"></param>
 public static void DynamicRemoveItem(LuaSimpleList eventHandler, LuaItem item)
 {
     eventHandler.DynamicRemoveItem(item);
 }
Exemplo n.º 3
0
 public static void UnBindOnItemAdd(LuaSimpleList eventHandler)
 {
     eventHandler.onItemAdd = null;
 }
Exemplo n.º 4
0
 /// <summary>
 /// 解绑Item移除
 /// </summary>
 /// <param name="eventHandler"></param>
 /// <param name="onItemRemove"></param>
 public static void UnBindOnItemRemove(LuaSimpleList eventHandler, Action <LuaItem> onItemRemove)
 {
     eventHandler.onItemRemove = null;
 }
Exemplo n.º 5
0
 /// <summary>
 /// 绑定Item添加事件
 /// </summary>
 public static void BindOnItemAdd(LuaSimpleList eventHandler, Action <LuaItem> onItemAdd)
 {
     eventHandler.onItemAdd = onItemAdd;
 }