summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/Chat/ChatEmotionBehaviour.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/Chat/ChatEmotionBehaviour.cs')
-rw-r--r--Client/Assets/Scripts/XMainClient/Chat/ChatEmotionBehaviour.cs27
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);
+ }
+ }
+}