44 lines
851 B
C#
44 lines
851 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class PartInWeedingBanquetPanel : MonoBehaviour {
|
|
|
|
public static PartInWeedingBanquetPanel Instance;
|
|
private void Awake()
|
|
{
|
|
Instance = this;
|
|
}
|
|
|
|
private void OnDestroy()
|
|
{
|
|
Instance = null;
|
|
}
|
|
|
|
public UIContainerBase _ItemContainer;
|
|
|
|
private void OnEnable()
|
|
{
|
|
ReqBanQuetInfo();
|
|
}
|
|
|
|
void ReqBanQuetInfo()
|
|
{
|
|
_ItemContainer.InitContentItem(null);
|
|
|
|
ReqWeddingFeastInfo req = new ReqWeddingFeastInfo();
|
|
req.flag = 1;
|
|
req.SendMsg();
|
|
}
|
|
|
|
public void OnPacket(RetWeddingFeastInfo packet)
|
|
{
|
|
_ItemContainer.InitContentItem(packet.info);
|
|
}
|
|
|
|
public void OnCloseBtn()
|
|
{
|
|
UIManager.CloseUI(UIInfo.PartInWeedingBanquetPanel);
|
|
}
|
|
}
|