Exemplo n.º 1
0
        static int _m_AddButton(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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


            try {
                {
                    string strBtn = LuaAPI.lua_tostring(L, 2);
                    UnityEngine.Events.UnityAction onClick = translator.GetDelegate <UnityEngine.Events.UnityAction>(L, 3);

                    __cl_gen_to_be_invoked.AddButton(strBtn, onClick);



                    return(0);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
Exemplo n.º 2
0
 public void AddSelect(string cmd, UnityEngine.Events.UnityAction onCmd)
 {
     selectList.gameObject.SetActive(true);
     selectList.AddButton(cmd, onCmd);
 }
Exemplo n.º 3
0
 public void AddCommand(string cmd, UnityEngine.Events.UnityAction onCmd)
 {
     cmdList.AddButton(cmd, onCmd);
 }