| | |
| | | Do("global.logex"); |
| | | Do("global.functions"); |
| | | Do("global.object"); |
| | | Do("global.define"); |
| | | Do("global.stringutil"); |
| | | |
| | | lastGCTime = 0f; |
| | | } |
| | |
| | | [ContextMenu("LuaReload")] |
| | | public void ReLoadLua() |
| | | { |
| | | LuaUtility.Do(string.Format("window.{0}", this.gameObject.name), this.gameObject.name, table); |
| | | LuaUtility.Do(filePath, this.gameObject.name, table); |
| | | |
| | | if (onBindController != null) |
| | | { |
| | |
| | | Display(items);
|
| | | }
|
| | |
|
| | | public void LuaDisplay(int[] itemIds, int[] itemCounts)
|
| | | {
|
| | | if (itemIds == null || itemCounts == null)
|
| | | {
|
| | | return;
|
| | | }
|
| | |
|
| | | var items = new List<Item>();
|
| | | var min = Mathf.Min(itemIds.Length, itemCounts.Length);
|
| | | for (int i = 0; i < min; i++)
|
| | | {
|
| | | items.Add(new Item(itemIds[i], itemCounts[i]));
|
| | | }
|
| | |
|
| | | Display(items);
|
| | | }
|
| | |
|
| | | public void LuaDisplay(int[] itemIds)
|
| | | {
|
| | | if (itemIds == null)
|
| | | {
|
| | | return;
|
| | | }
|
| | |
|
| | | var items = new List<Item>();
|
| | | for (int i = 0; i < itemIds.Length; i++)
|
| | | {
|
| | | items.Add(new Item(itemIds[i], 0));
|
| | | }
|
| | |
|
| | | Display(items);
|
| | | }
|
| | |
|
| | | public void Hide()
|
| | | {
|
| | | for (int i = 0; i < m_ItemBehaviours.Length; i++)
|