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)); } }
public void RegistBtn() { Debug.Log(RegistPanle.name); GameObject tmpGameObj = monoBase.InitialPanle(RegistPanle); Debug.Log(tmpGameObj.name); tmpGameObj.AddComponent <TeacherRegisting>(); }
public void RegistBtnPress() { Debug.Log("BtnDone==" + registObj.name); LoadingObj.SetActive(false); GameObject tmpGameObj = tmpMono.InitialPanle(registObj); //tmpMono.Initial(tmpGameObj.transform); tmpGameObj.AddComponent <UIDemoRegist>(); }