| | |
| | | //-------------------------------------------------------- |
| | | // [Author]: 第二世界 |
| | | // [Author]: 玩个游戏 |
| | | // [ Date ]: Tuesday, October 31, 2017 |
| | | //-------------------------------------------------------- |
| | | using UnityEngine; |
| | |
| | | using System.Collections.Generic; |
| | | using UnityEngine.UI; |
| | | using UnityEngine.Events; |
| | | |
| | | namespace vnxbqy.UI |
| | | { |
| | | using System; |
| | | |
| | | public class FunctionButtonGroup : MonoBehaviour |
| | | { |
| | |
| | | return functionButton; |
| | | } |
| | | |
| | | public void SetFunctionListener(int order, UnityAction callBack) |
| | | public void SetFunctionListener(int order, Action callBack) |
| | | { |
| | | if (functionButtons.ContainsKey(order)) |
| | | { |
| | | functionButtons[order].SetListener(callBack); |
| | | functionButtons[order].SetListener(() => callBack?.Invoke()); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |