From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../Scripts/XMainClient/AnnounceBehaviour.cs | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/AnnounceBehaviour.cs (limited to 'Client/Assets/Scripts/XMainClient/AnnounceBehaviour.cs') diff --git a/Client/Assets/Scripts/XMainClient/AnnounceBehaviour.cs b/Client/Assets/Scripts/XMainClient/AnnounceBehaviour.cs new file mode 100644 index 00000000..bcc5c186 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AnnounceBehaviour.cs @@ -0,0 +1,34 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class AnnounceBehaviour : DlgBehaviourBase + { + public IXUISprite m_closedSpr; + + public IXUISprite m_iconSpr; + + public IXUILabel m_nameLab; + + public IXUILabel m_levelLab; + + public IXUILabel m_describeLab; + + public IXUITweenTool m_playerTween = null; + + private void Awake() + { + Transform transform = base.transform.Find("Bg"); + this.m_closedSpr = (transform.Find("Close").GetComponent("XUISprite") as IXUISprite); + this.m_iconSpr = (transform.Find("Icon").GetComponent("XUISprite") as IXUISprite); + this.m_playerTween = (transform.GetComponent("XUIPlayTween") as IXUITweenTool); + transform = transform.Find("SkillFrame").transform; + this.m_nameLab = (transform.Find("AttrName").GetComponent("XUILabel") as IXUILabel); + this.m_levelLab = (transform.Find("Level").GetComponent("XUILabel") as IXUILabel); + this.m_describeLab = (transform.Find("Describe").GetComponent("XUILabel") as IXUILabel); + } + } +} -- cgit v1.1-26-g67d0