using System; using UILib; using UnityEngine; using XMainClient.UI.UICommon; namespace XMainClient { internal class XMultiPkLoadingBehaviour : DlgBehaviourBase { public IXUITweenTool m_PkLoadingTween; public IXUILabel[] m_Name = new IXUILabel[4]; public IXUILabel[] m_Score = new IXUILabel[4]; public IXUISprite[] m_Prefession = new IXUISprite[4]; public IXUITexture[] m_HalfPic = new IXUITexture[4]; 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.GetComp(transform.Find("P1").gameObject, 0); this.GetComp(transform.Find("P2").gameObject, 1); this.GetComp(transform2.Find("P3").gameObject, 2); this.GetComp(transform2.Find("P4").gameObject, 3); } public void GetComp(GameObject go, int index) { this.m_Name[index] = (go.transform.Find("Name").GetComponent("XUILabel") as IXUILabel); this.m_Score[index] = (go.transform.Find("Score").GetComponent("XUILabel") as IXUILabel); this.m_Prefession[index] = (go.transform.Find("Profession").GetComponent("XUISprite") as IXUISprite); this.m_HalfPic[index] = (go.transform.Find("HalfPic").GetComponent("XUITexture") as IXUITexture); } } }