xLua——配置项目

作者:追风剑情 发布于:2019-1-13 12:12 分类:Lua

一、拷贝下面目录到工程中
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; }
    }
}


标签: xLua

Powered by emlog  蜀ICP备18021003号-1   sitemap

川公网安备 51019002001593号