46 lines
903 B
C#
46 lines
903 B
C#
using UnityEngine;
|
|
using System.Collections;
|
|
using GCGame.Table;
|
|
|
|
public class ReqMarryPanelCtr : MonoBehaviour {
|
|
|
|
public static ReqMarryPanelCtr Instance;
|
|
private void Awake()
|
|
{
|
|
Instance = this;
|
|
}
|
|
|
|
private void OnDestroy()
|
|
{
|
|
Instance = null;
|
|
}
|
|
|
|
public void OnMarryBtnClick()
|
|
{
|
|
ReqGetOtherMarryRingInfo req = new ReqGetOtherMarryRingInfo();
|
|
req.guid = -1;
|
|
req.SendMsg();
|
|
}
|
|
|
|
public void OnDivorceBtnClick()
|
|
{
|
|
if (!IsMarried())
|
|
{
|
|
GUIData.AddNotifyData("#{46362}");
|
|
return;
|
|
}
|
|
UIManager.ShowUI(UIInfo.DivorcePanel);
|
|
}
|
|
|
|
public void OnCloseBtnClick()
|
|
{
|
|
UIManager.CloseUI(UIInfo.ReqMarryPanel);
|
|
}
|
|
|
|
//判断当前的婚姻状态
|
|
public bool IsMarried()
|
|
{
|
|
return GameManager.gameManager.PlayerDataPool.IsMarried;
|
|
}
|
|
}
|