From bb2d2bae05da9eed93e13071b0f3bb9f5e058aa8 Mon Sep 17 00:00:00 2001
From: client_Wu Xijin <364452445@qq.com>
Date: 星期二, 16 四月 2019 19:52:14 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
---
UI/Common/FunctionButton.cs | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/UI/Common/FunctionButton.cs b/UI/Common/FunctionButton.cs
index 5f45c3d..5569a3c 100644
--- a/UI/Common/FunctionButton.cs
+++ b/UI/Common/FunctionButton.cs
@@ -7,12 +7,13 @@
using UnityEngine.UI;
using UnityEngine.Events;
using UnityEngine.EventSystems;
-using TableConfig;
+
using System;
namespace Snxxz.UI
{
+ [XLua.LuaCallCSharp]
public class FunctionButton : Button
{
[SerializeField] int m_Order = 0;
@@ -104,6 +105,7 @@
}
public event Action<string> OnPointClickLockFunc;
+ public event Action repeatClickFunc;
protected override void Awake()
{
@@ -170,6 +172,10 @@
if (!invokeForce && state == TitleBtnState.Click)
{
+ if (repeatClickFunc != null)
+ {
+ repeatClickFunc();
+ }
return;
}
--
Gitblit v1.8.0