yyl
9 天以前 b6f94e013be7edc0aa3de2440dd52d2c7e6d9d38
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
using UnityEngine;
using UnityEngine.UI;
public class FuncRules : MonoBehaviour
{
    [SerializeField] Button m_Button;
    [SerializeField] int m_RuleId;
 
 
    private void Awake()
    {
        m_Button.AddListener(OpenRuleWin);
    }
 
    private void OpenRuleWin()
    {
        var rule = RuleConfig.Get(m_RuleId);
        if (!UIManager.Instance.IsOpened<FuncRuleWin>())
        {
            UIManager.Instance.OpenWindow<FuncRuleWin>(m_RuleId);
        }
    }
 
 
}