From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../Assets/Scripts/XMainClient/UI/XFavorParam.cs | 38 ++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/UI/XFavorParam.cs (limited to 'Client/Assets/Scripts/XMainClient/UI/XFavorParam.cs') diff --git a/Client/Assets/Scripts/XMainClient/UI/XFavorParam.cs b/Client/Assets/Scripts/XMainClient/UI/XFavorParam.cs new file mode 100644 index 00000000..23d69dfe --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XFavorParam.cs @@ -0,0 +1,38 @@ +using System; +using UILib; + +namespace XMainClient.UI +{ + internal class XFavorParam : XDataBase + { + public XNpc Npc; + + public string Text; + + public bool isShowSend = false; + + public bool isShowExchange = false; + + public bool isShowExchangeRedpoint = false; + + public ButtonClickEventHandler sendCallback; + + public ButtonClickEventHandler exchangeCallback; + + public override void Init() + { + this.Npc = null; + this.Text = string.Empty; + this.isShowSend = false; + this.isShowExchange = false; + this.isShowExchangeRedpoint = false; + this.sendCallback = null; + this.exchangeCallback = null; + } + + public override void Recycle() + { + XDataPool.Recycle(this); + } + } +} -- cgit v1.1-26-g67d0