Beispiel #1
0
    public void OnGUI()
    {
        if (GUI.Button(new Rect(10, 100, 100, 100), "调用方法"))
        {
//			LuaTable scriptEnv = _luaClient.DoFile ("TestClass2");
//			Action Description = scriptEnv.Get<Action>("Description");
//			if (Description != null)

            Description();
        }

        if (GUI.Button(new Rect(10, 250, 100, 100), "更新代码"))
        {
            _luaClient.DoFile("UpdateLuaTest", this);
        }
    }