From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../XMainClient/Chat/ChatEmotionBehaviour.cs | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/Chat/ChatEmotionBehaviour.cs (limited to 'Client/Assets/Scripts/XMainClient/Chat/ChatEmotionBehaviour.cs') diff --git a/Client/Assets/Scripts/XMainClient/Chat/ChatEmotionBehaviour.cs b/Client/Assets/Scripts/XMainClient/Chat/ChatEmotionBehaviour.cs new file mode 100644 index 00000000..3ee1e84c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Chat/ChatEmotionBehaviour.cs @@ -0,0 +1,27 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class ChatEmotionBehaviour : DlgBehaviourBase + { + public IXUISprite m_sprEmotion; + + public IXUISprite m_sprP; + + public GameObject m_objEmotionTpl; + + public XUIPool m_ChatEmotionPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private void Awake() + { + this.m_sprEmotion = (base.transform.Find("Emotion").GetComponent("XUISprite") as IXUISprite); + this.m_sprP = (base.transform.Find("P").GetComponent("XUISprite") as IXUISprite); + this.m_objEmotionTpl = base.transform.Find("Emotion/template").gameObject; + this.m_ChatEmotionPool.SetupPool(this.m_sprEmotion.gameObject, this.m_objEmotionTpl, 24u, false); + } + } +} -- cgit v1.1-26-g67d0