Exemplo n.º 1
0
    static int InitialPanle(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UIBases), typeof(UnityEngine.Object)))
            {
                UIBases                obj  = (UIBases)ToLua.ToObject(L, 1);
                UnityEngine.Object     arg0 = (UnityEngine.Object)ToLua.ToObject(L, 2);
                UnityEngine.GameObject o    = obj.InitialPanle(arg0);
                ToLua.Push(L, o);
                return(1);
            }
            else if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UIBases), typeof(string)))
            {
                UIBases obj              = (UIBases)ToLua.ToObject(L, 1);
                string  arg0             = ToLua.ToString(L, 2);
                UnityEngine.GameObject o = obj.InitialPanle(arg0);
                ToLua.Push(L, o);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: UIBases.InitialPanle"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
Exemplo n.º 2
0
    public void RegistBtn()
    {
        Debug.Log(RegistPanle.name);
        GameObject tmpGameObj = monoBase.InitialPanle(RegistPanle);

        Debug.Log(tmpGameObj.name);



        tmpGameObj.AddComponent <TeacherRegisting>();
    }
Exemplo n.º 3
0
    public void  RegistBtnPress()
    {
        Debug.Log("BtnDone==" + registObj.name);


        LoadingObj.SetActive(false);

        GameObject tmpGameObj = tmpMono.InitialPanle(registObj);


        //tmpMono.Initial(tmpGameObj.transform);


        tmpGameObj.AddComponent <UIDemoRegist>();
    }