Exemple #1
0
        public static LuaItem CloneLuaItem(LuaItem template, Action <LuaItem> callBack)
        {
            var luaItem = CachedClone.Clone(template.gameObject).GetComponent <LuaItem>();

            if (callBack != null)
            {
                callBack(luaItem);
            }

            return(luaItem);
        }
Exemple #2
0
 /// <summary>
 /// 强制移除Item
 /// </summary>
 /// <param name="eventHandler"></param>
 /// <param name="item"></param>
 public static void DynamicRemoveItem(LuaSimpleList eventHandler, LuaItem item)
 {
     eventHandler.DynamicRemoveItem(item);
 }