Exemplo n.º 1
0
        public override void Awake()
        {
            base.Awake();

            var t = mDMono.transform;

            m_UIName    = t.GetComponent <UILabel>("Name");
            m_UILevel   = t.GetComponent <UILabel>("Level");
            m_UIRank    = t.GetMonoILRComponent <RankIconOrNumber>("Rank");
            m_UIIcon    = t.GetComponent <UISprite>("PlayerIcon/Pic");
            m_UIBg      = t.GetComponent <UISprite>("BG");
            m_FrameIcon = t.GetComponent <UISprite>("PlayerIcon/Frame");
        }
Exemplo n.º 2
0
 public override void Awake()
 {
     base.Awake();
     m_UIRank    = mDMono.transform.GetMonoILRComponent <RankIconOrNumber>("Rank", false);
     m_UIIcon    = mDMono.transform.GetComponent <UISprite>("Pic", false);
     m_FrameIcon = mDMono.transform.GetComponent <UISprite>("Pic/Frame", false);
     m_UIName    = mDMono.transform.GetComponent <UILabel>("Name", false);
     m_UILevel   = mDMono.transform.GetComponent <UILabel>("Level", false);
     m_BadgeIcon = mDMono.transform.GetComponent <UISprite>("AlliancePic/AllianceIcon", false);
     m_BadgeBG   = mDMono.transform.GetComponent <UISprite>("AlliancePic", false);
     m_UIBg      = mDMono.transform.GetComponent <UISprite>("BG", false);
     m_UIIcon.gameObject.GetComponent <UIEventTrigger>().onClick.Add(new EventDelegate(() =>
     {
         OnIconClick();
     }));
 }
Exemplo n.º 3
0
        public override void Awake()
        {
            base.Awake();
            var t = mDMono.transform;

            m_UIBg              = t.GetComponent <UISprite>("BG");
            m_UIRank            = t.GetMonoILRComponent <RankIconOrNumber>("Rank");
            m_UIIcon            = t.GetComponent <UISprite>("DataContainer/Pic");
            m_FrameIcon         = t.GetComponent <UISprite>("DataContainer/Pic/Frame");
            m_UIName            = t.GetComponent <UILabel>("DataContainer/Name");
            m_UICombatPower     = t.GetComponent <UILabel>("DataContainer/CombatPower/Base");
            m_UIScore           = t.GetComponent <UILabel>("DataContainer/Score");
            m_OnHookincomeLabel = t.GetComponent <UILabel>("DataContainer/OnHookincomeLabel");
            m_EmptyGameObject   = t.GetComponent <UIWidget>("EmptyContainer");
            m_DataGameObject    = t.GetComponent <UIWidget>("DataContainer");
            m_UIIcon.gameObject.GetComponent <UIEventTrigger>().onPress.Add(new EventDelegate(() =>
            {
                OnIconClick();
            }));

            Messenger.AddListener <int>(EventName.HonorCombatTeamPowerUpdate, onCombatTeamPowerUpdate);
        }