From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../Scripts/XMainClient/XPkLoadingBehaviour.cs | 71 ++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/XPkLoadingBehaviour.cs (limited to 'Client/Assets/Scripts/XMainClient/XPkLoadingBehaviour.cs') diff --git a/Client/Assets/Scripts/XMainClient/XPkLoadingBehaviour.cs b/Client/Assets/Scripts/XMainClient/XPkLoadingBehaviour.cs new file mode 100644 index 00000000..db327d78 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPkLoadingBehaviour.cs @@ -0,0 +1,71 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class XPkLoadingBehaviour : DlgBehaviourBase + { + public IXUITweenTool m_PkLoadingTween; + + public IXUILabel[] m_Name = new IXUILabel[2]; + + public IXUILabel[] m_Level = new IXUILabel[2]; + + public IXUILabel[] m_WinCount = new IXUILabel[2]; + + public IXUILabel[] m_Point = new IXUILabel[2]; + + public IXUILabel[] m_Percent = new IXUILabel[2]; + + public IXUILabel[] m_NearWin = new IXUILabel[2]; + + public IXUISprite[] m_Prefession = new IXUISprite[2]; + + public Transform m_LeftSnapshot; + + public Transform m_RightSnapshot; + + public IXUITexture[] m_HalfPic = new IXUITexture[2]; + + public GameObject[] m_Detail = new GameObject[2]; + + private void Awake() + { + this.m_PkLoadingTween = (base.transform.Find("Bg").GetComponent("XUIPlayTween") as IXUITweenTool); + Transform transform = base.transform.Find("Bg/Left"); + Transform transform2 = base.transform.Find("Bg/Right"); + this.m_Name[0] = (transform.Find("Name").GetComponent("XUILabel") as IXUILabel); + this.m_Name[1] = (transform2.Find("Name").GetComponent("XUILabel") as IXUILabel); + this.m_Level[0] = (transform.Find("Level").GetComponent("XUILabel") as IXUILabel); + this.m_Level[1] = (transform2.Find("Level").GetComponent("XUILabel") as IXUILabel); + this.m_Prefession[0] = (transform.Find("Profession").GetComponent("XUISprite") as IXUISprite); + this.m_Prefession[1] = (transform2.Find("Profession").GetComponent("XUISprite") as IXUISprite); + this.m_LeftSnapshot = transform.Find("Snapshot"); + this.m_RightSnapshot = transform2.Find("Snapshot"); + this.m_HalfPic[0] = (transform.Find("HalfPic").GetComponent("XUITexture") as IXUITexture); + this.m_HalfPic[1] = (transform2.Find("HalfPic").GetComponent("XUITexture") as IXUITexture); + Transform transform3 = transform.Find("Detail"); + Transform transform4 = transform2.Find("Detail"); + bool flag = transform3 != null; + if (flag) + { + this.m_Detail[0] = transform.Find("Detail").gameObject; + this.m_WinCount[0] = (transform.Find("Detail/WinCount").GetComponent("XUILabel") as IXUILabel); + this.m_Point[0] = (transform.Find("Detail/Point").GetComponent("XUILabel") as IXUILabel); + this.m_Percent[0] = (transform.Find("Detail/Percent").GetComponent("XUILabel") as IXUILabel); + this.m_NearWin[0] = (transform.Find("Detail/NearWin").GetComponent("XUILabel") as IXUILabel); + } + bool flag2 = transform4 != null; + if (flag2) + { + this.m_Detail[1] = transform2.Find("Detail").gameObject; + this.m_WinCount[1] = (transform2.Find("Detail/WinCount").GetComponent("XUILabel") as IXUILabel); + this.m_Point[1] = (transform2.Find("Detail/Point").GetComponent("XUILabel") as IXUILabel); + this.m_Percent[1] = (transform2.Find("Detail/Percent").GetComponent("XUILabel") as IXUILabel); + this.m_NearWin[1] = (transform2.Find("Detail/NearWin").GetComponent("XUILabel") as IXUILabel); + } + } + } +} -- cgit v1.1-26-g67d0