コード例 #1
0
ファイル: UIViewUtil.cs プロジェクト: wly2/BaiLaoHui
    public void LoadUIRoot(Action OnCreate = null)
    {
        GameObject rootUI = ResourcesMgr.Instance.Load(ResourcesMgr.ResourceType.UIScene, "UIRootView", cache: true);

        RootCtrl = rootUI.GetComponent <LuaWindowBehaviour>();

        if (rootUI.GetComponent <LuaBehaviour>() == null)
        {
            rootUI.AddComponent <LuaBehaviour>();
        }

        if (OnCreate != null)
        {
            OnCreate();
        }
    }
コード例 #2
0
        static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    LuaWindowBehaviour __cl_gen_ret = new LuaWindowBehaviour();
                    translator.Push(L, __cl_gen_ret);

                    return(1);
                }
            }
            catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(LuaAPI.luaL_error(L, "invalid arguments to LuaWindowBehaviour constructor!"));
        }
コード例 #3
0
        static int _m_ShowExitConfirmation(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                LuaWindowBehaviour __cl_gen_to_be_invoked = (LuaWindowBehaviour)translator.FastGetCSObj(L, 1);



                {
                    __cl_gen_to_be_invoked.ShowExitConfirmation(  );



                    return(0);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }