public override void OnLoaded() { m_btn_return.onClick.AddListener(_onReturnButtonClick); m_btn_menu.onClick.AddListener(_onMenuButtonClick); MulitButton mulitBtn = m_btn_menu.GetComponent <MulitButton>(); mulitBtn.SetOnClickFunction(0, _onEmailButtonClick); mulitBtn.SetOnClickFunction(1, _onOptionButtonClick); mulitBtn.SetOnClickFunction(2, _onShopButtonClick); }
static public int SetOnClickFunction(IntPtr l) { try { MulitButton self = (MulitButton)checkSelf(l); System.Int32 a1; checkType(l, 2, out a1); System.Action <System.Int32> a2; LuaDelegation.checkDelegate(l, 3, out a2); self.SetOnClickFunction(a1, a2); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }