Skip to content

Commit

Permalink
丰富例子
Browse files Browse the repository at this point in the history
  • Loading branch information
chexiongsheng committed Jul 26, 2018
1 parent 974f190 commit 386cced
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Assets/XLua/Doc/Faq_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,11 @@ If your xLua version is larger than v2.1.12, you can
~~~lua
local List_String = CS.System.Collections.Generic.List(CS.System.String)
local lst = List_String()

local Dictionary_String_Vector3 = CS.System.Collections.Generic.Dictionary(CS.System.String, CS.UnityEngine.Vector3)
local dic = Dictionary_String_Vector3()
dic:Add('a', CS.UnityEngine.Vector3(1, 2, 3))
print(dic:TryGetValue('a'))
~~~

## Why is the "try to dispose a LuaEnv with C# callback!" error reported when LuaEnv.Dispose is called?
Expand Down
5 changes: 5 additions & 0 deletions Assets/XLua/Doc/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,11 @@ print(dic:TryGetValue('a'))
~~~lua
local List_String = CS.System.Collections.Generic.List(CS.System.String)
local lst = List_String()

local Dictionary_String_Vector3 = CS.System.Collections.Generic.Dictionary(CS.System.String, CS.UnityEngine.Vector3)
local dic = Dictionary_String_Vector3()
dic:Add('a', CS.UnityEngine.Vector3(1, 2, 3))
print(dic:TryGetValue('a'))
~~~


Expand Down

0 comments on commit 386cced

Please sign in to comment.