static int SetRoot(IntPtr L) { try { ToLua.CheckArgsCount(L, 3); FairyRoot obj = (FairyRoot)ToLua.CheckObject <FairyRoot>(L, 1); FairyGUI.GComponent arg0 = (FairyGUI.GComponent)ToLua.CheckObject <FairyGUI.GComponent>(L, 2); FairyUIType arg1 = (FairyUIType)ToLua.CheckObject(L, 3, typeof(FairyUIType)); obj.SetRoot(arg0, arg1); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int get_fixedRoot(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FairyRoot obj = (FairyRoot)o; FairyGUI.GComponent ret = obj.fixedRoot; ToLua.PushObject(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index fixedRoot on a nil value")); } }
static int set_WaitingRoot(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FairyRoot obj = (FairyRoot)o; FairyGUI.GComponent arg0 = (FairyGUI.GComponent)ToLua.CheckObject <FairyGUI.GComponent>(L, 2); obj.WaitingRoot = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index WaitingRoot on a nil value")); } }
public GComponent WaitingRoot; //900 static void InitRoot() { GameObject go = new GameObject("FairyGUI"); m_self = go.AddComponent <FairyRoot>(); //创建Normal m_self.normalRoot = new GComponent(); GRoot.inst.AddChild(m_self.normalRoot); m_self.normalRoot.gameObjectName = "Normal"; //创建Fixed m_self.fixedRoot = new GComponent(); GRoot.inst.AddChild(m_self.fixedRoot); m_self.fixedRoot.gameObjectName = "Fixed"; //创建popup m_self.popupRoot = new GComponent(); GRoot.inst.AddChild(m_self.popupRoot); m_self.popupRoot.gameObjectName = "PopUp"; //创建toppest m_self.ToppestRoot = new GComponent(); GRoot.inst.AddChild(m_self.ToppestRoot); m_self.ToppestRoot.gameObjectName = "Toppest"; }