| | |
| | | public void Init() |
| | | { |
| | | Do("global.util"); |
| | | Do("custom.ButtonUtil"); |
| | | Do("global.logex"); |
| | | Do("global.functions"); |
| | | Do("global.object"); |
| | |
| | | [LuaCallCSharp] |
| | | public class LuaWindow : Window |
| | | { |
| | | |
| | | public string filePath = ""; |
| | | |
| | | Action luaOnDestroy; |
| | | |
| | | Action onBindController; |
| | |
| | | table.SetMetaTable(meta); |
| | | meta.Dispose(); |
| | | |
| | | LuaUtility.Do(string.Format("window.{0}", this.gameObject.name), this.gameObject.name, table); |
| | | LuaUtility.Do(filePath, this.gameObject.name, table); |
| | | |
| | | table.Get("BindController", out onBindController); |
| | | table.Get("AddListeners", out onAddListeners); |
| | |
| | | using UnityEngine.EventSystems; |
| | | using System; |
| | | |
| | | [XLua.LuaCallCSharp] |
| | | public class ButtonEx : Button |
| | | { |
| | | |