コード例 #1
0
    void Start()
    {
        EnvLua = new LuaEnv();
        EnvLua.DoString("require 'CCallLua'");

        //获取table测试-By Interface
        IShip myShip = EnvLua.Global.Get <IShip>("ship");

        Debug.Log("By Interface");
        Debug.Log("name		"+ myShip.name);
        Debug.Log("year		"+ myShip.year);
        Debug.Log("damage		"+ myShip.damage);
        myShip.Fire(666);
    }