blob: 4dfabb710fe92fb3c8cb83029e34c38f6faaa459 (
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
28
29
30
31
32
33
34
35
36
37
38
39
|
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);
}
}
}
|