//--------------------------------------------------------
|
// [Author]: 第二世界
|
// [ Date ]: Tuesday, January 16, 2018
|
//--------------------------------------------------------
|
using UnityEngine;
|
using System.Collections;
|
using UnityEngine.UI;
|
|
namespace Snxxz.UI
|
{
|
|
public class RuleButton : MonoBehaviour
|
{
|
|
[SerializeField] Button m_Button;
|
[SerializeField] int m_RuleId;
|
|
private void Awake()
|
{
|
m_Button.AddListener(OpenRuleWin);
|
}
|
|
private void OpenRuleWin()
|
{
|
ModelCenter.Instance.GetModel<HowToPlayModel>().ruleId = m_RuleId;
|
WindowCenter.Instance.Open<HowToPlayWin>();
|
}
|
|
}
|
|
}
|