Esempio n. 1
0
        static int _s_set_AudioSource(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                Game.UIButton gen_to_be_invoked = (Game.UIButton)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.AudioSource = (UnityEngine.AudioSource)translator.GetObject(L, 2, typeof(UnityEngine.AudioSource));
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
Esempio n. 2
0
        static int _g_get_AudioSource(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                Game.UIButton gen_to_be_invoked = (Game.UIButton)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.AudioSource);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(1);
        }
Esempio n. 3
0
        static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    Game.UIButton gen_ret = new Game.UIButton();
                    translator.Push(L, 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 Game.UIButton constructor!"));
        }
        static int _m_RemoveAllClick_xlua_st_(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);



                {
                    Game.UIButton _button = (Game.UIButton)translator.GetObject(L, 1, typeof(Game.UIButton));

                    Game.UIListener.RemoveAllClick(_button);



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
        static int _m_AddClick_xlua_st_(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);



                {
                    Game.UIButton _button = (Game.UIButton)translator.GetObject(L, 1, typeof(Game.UIButton));
                    UnityEngine.Events.UnityAction _action = translator.GetDelegate <UnityEngine.Events.UnityAction>(L, 2);

                    Game.UIListener.AddClick(_button, _action);



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
Esempio n. 6
0
        static int _m_OnPointerClick(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                Game.UIButton gen_to_be_invoked = (Game.UIButton)translator.FastGetCSObj(L, 1);



                {
                    UnityEngine.EventSystems.PointerEventData _eventData = (UnityEngine.EventSystems.PointerEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData));

                    gen_to_be_invoked.OnPointerClick(_eventData);



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