Exemplo n.º 1
0
 public void Hide()
 {
     m_currState = EPageState.HIDE;
     m_pageInst.gameObject.SetActive(false);
     //Debug.LogError("call lua hide :(" + m_pageName + "Ctrl)");
     Util.CallMethod(m_luaPageCtrl, "Hide");
 }
Exemplo n.º 2
0
 public void Destroy()
 {
     m_currState = EPageState.CLOSE;
     GameObject.Destroy(m_pageInst);
     //Debug.LogError("call lua destroy :(" + m_pageName + "Ctrl)");
     Util.CallMethod(m_luaPageCtrl, "Destroy");
 }
Exemplo n.º 3
0
 public void Rest()
 {
     m_currState = EPageState.OPEN;
     m_pageInst.gameObject.SetActive(true);
     //Debug.LogError("call lua rest :(" + m_pageName + "Ctrl)");
     Util.CallMethod(m_luaPageCtrl, "Rest");
 }
Exemplo n.º 4
0
 public void Start()
 {
     m_currState = EPageState.OPEN;
     m_pageInst.gameObject.SetActive(true);
     AnchorUIGameObject();
     Util.CallMethod(m_luaPageView, "Start", this.m_pageInst);
     Util.CallMethod(m_luaPageCtrl, "Start");
 }
Exemplo n.º 5
0
 public void Start()
 {
     m_currState = EPageState.OPEN;
     m_pageInst.gameObject.SetActive(true);
     AnchorUIGameObject();
     //Debug.LogError("call lua start :(" + m_pageName + "Ctrl)");
     Util.CallMethod(m_luaPagePanel, "Start", this.m_pageInst);
     Util.CallMethod(m_luaPageCtrl, "Start");
 }
Exemplo n.º 6
0
    static int set_m_currState(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            XPage      obj  = (XPage)o;
            EPageState arg0 = (EPageState)ToLua.CheckObject(L, 2, typeof(EPageState));
            obj.m_currState = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index m_currState on a nil value" : e.Message));
        }
    }
Exemplo n.º 7
0
    static int get_m_currState(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            XPage      obj = (XPage)o;
            EPageState ret = obj.m_currState;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index m_currState on a nil value" : e.Message));
        }
    }
Exemplo n.º 8
0
 public void Destroy()
 {
     m_currState = EPageState.CLOSE;
     GameObject.Destroy(m_pageInst);
     Util.CallMethod(m_luaPageCtrl, "Destroy");
 }
Exemplo n.º 9
0
 public void Hide()
 {
     m_currState = EPageState.HIDE;
     m_pageInst.gameObject.SetActive(false);
     Util.CallMethod(m_luaPageCtrl, "Hide");
 }
Exemplo n.º 10
0
 public void Rest()
 {
     m_currState = EPageState.OPEN;
     m_pageInst.gameObject.SetActive(true);
     Util.CallMethod(m_luaPageCtrl, "Rest");
 }