一、拷贝下面目录到工程中
Assets\Plugins
Assets\XLua\Resources
Assets\XLua\Src
二、实现GenConfig接口
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace XLua
{
public class GenConfigWrap : GenConfig
{
public List<Type> LuaCallCSharp {
get {
List<Type> list = new List<Type>(){
typeof(Debug)
};
return list;
}
}
public List<Type> CSharpCallLua { get; }
public List<List<string>> BlackList { get; }
}
}