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); } } } }