Beispiel #1
0
 /// <summary>
 /// 设置被挑战玩家数据
 /// </summary>
 /// <param name="data"></param>
 /// <param name="level"></param>
 public void SetArenaPlayerData(ArenaPlayerData data, int tab)
 {
     m_playerForce.GetComponent <UILabel>().text    = LanguageData.dataMap.Get(25008).Format(data.fightForce);
     m_playerLevel.GetComponent <UILabel>().text    = "LV" + data.level.ToString();
     m_playerName.GetComponent <UILabel>().text     = data.name;
     m_playerVocation.GetComponent <UILabel>().text = LanguageData.dataMap.Get(data.vocation).content;
     SetArenaPlayerMedal(data.arenaLevel);
 }
    /// <summary>
    /// 竞技场敌方数据
    /// </summary>
    /// <param name="data"></param>
    /// <param name="tab"></param>
    public void SetArenaPlayerData(ArenaPlayerData data, int tab)
    {
        if (m_view != null)
        {
            m_playerData[tab] = data;
            if (m_curTab == tab)
            {
                m_view.SetArenaPlayerData(data, tab);
                m_view.SetModelShow(m_playerData[m_curTab].vocation, m_playerData[m_curTab].equip, true);

                if (m_curTab == (int)ArenaTab.Revenge)
                {
                    m_view.SetArenaDesc(LanguageData.dataMap.Get(274).Format(m_playerData[m_curTab].name));
                    if (m_arenaPersonalData.beatEnemy != 0)
                    {
                        m_view.SetRevengeInfo(true);
                    }
                }
            }
        }
    }
Beispiel #3
0
 /// <summary>
 /// 设置玩家自己的数据
 /// </summary>
 /// <param name="data"></param>
 public void SetArenaEnemyData(ArenaPlayerData data, ArenaUIEnemyTab enemyTab)
 {
     SetArenaUIEnyForceNum(data.fightForce.ToString());
     SetArenaUIEnyLevelNum(data.level.ToString());
 }
 /// <summary>
 /// 设置玩家自己的数据
 /// </summary>
 /// <param name="data"></param>
 public void SetArenaEnemyData(ArenaPlayerData data, ArenaUIEnemyTab enemyTab)
 {
     SetArenaUIEnyForceNum(data.fightForce.ToString());
     SetArenaUIEnyLevelNum(data.level.ToString());
 }
 /// <summary>
 /// 设置被挑战玩家数据
 /// </summary>
 /// <param name="data"></param>
 /// <param name="level"></param>
 public void SetArenaPlayerData(ArenaPlayerData data, int tab)
 {
     m_playerForce.GetComponent<UILabel>().text = LanguageData.dataMap.Get(25008).Format(data.fightForce);
     m_playerLevel.GetComponent<UILabel>().text = "LV" + data.level.ToString();
     m_playerName.GetComponent<UILabel>().text = data.name;
     m_playerVocation.GetComponent<UILabel>().text = LanguageData.dataMap.Get(data.vocation).content;
     SetArenaPlayerMedal(data.arenaLevel);
 }
 /// <summary>
 /// 竞技场敌方数据
 /// </summary>
 /// <param name="data"></param>
 /// <param name="tab"></param>
 public void SetArenaPlayerData(ArenaPlayerData data, int tab)
 {
     if (m_view != null)
     {
         m_playerData[tab] = data;
         if (m_curTab == tab)
         {
             m_view.SetArenaPlayerData(data, tab);
             m_view.SetModelShow(m_playerData[m_curTab].vocation, m_playerData[m_curTab].equip,true);
         
             if (m_curTab == (int)ArenaTab.Revenge)
             {
                 m_view.SetArenaDesc(LanguageData.dataMap.Get(274).Format(m_playerData[m_curTab].name));
                 if (m_arenaPersonalData.beatEnemy != 0)
                     m_view.SetRevengeInfo(true);
             }
         }
     }
 }