public static LuaItem CloneLuaItem(LuaItem template, Action <LuaItem> callBack) { var luaItem = CachedClone.Clone(template.gameObject).GetComponent <LuaItem>(); if (callBack != null) { callBack(luaItem); } return(luaItem); }
/// <summary> /// 强制移除Item /// </summary> /// <param name="eventHandler"></param> /// <param name="item"></param> public static void DynamicRemoveItem(LuaSimpleList eventHandler, LuaItem item) { eventHandler.DynamicRemoveItem(item); }