diff options
author | chai <chaifix@163.com> | 2021-01-25 14:28:30 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-01-25 14:28:30 +0800 |
commit | 6eb915c129fc90c6f4c82ae097dd6ffad5239efc (patch) | |
tree | 7dd2be50edf41f36b60fac84696e731c13afe617 /Client/Assets/Scripts/XMainClient/Chat/ChatEmotionBehaviour.cs |
+scripts
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/Chat/ChatEmotionBehaviour.cs')
-rw-r--r-- | Client/Assets/Scripts/XMainClient/Chat/ChatEmotionBehaviour.cs | 27 |
1 files changed, 27 insertions, 0 deletions
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<XGameUI>.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);
+ }
+ }
+}
|