blob: 3ee1e84c6e385f40dbfaab76b0178667c8bb0209 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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);
}
}
}
|