Files
JJBB/Assets/Project/Script/GUI/Role/RoleViewAchieveItem.cs

49 lines
883 B
C#
Raw Normal View History

2024-08-23 15:49:34 +08:00
using UnityEngine;
using UnityEngine.UI;
using System.Collections;
using Games.GlobeDefine;
public class RoleViewAchieveItem : UIItemBase
{
#region
public Text _NameTx;
public Text _DescTx;
#endregion
public override void Show(Hashtable hash)
{
base.Show();
var teamInfo = (TeamInfo)hash["InitObj"];
InitTeamInfo(teamInfo);
}
private void InitTeamInfo(TeamInfo teamInfo)
{
if (teamInfo == null)
return;
}
private string GetSpriteByPro(int pro)
{
switch (pro)
{
case 0:
return ("head-xiaoyao");
case 1:
return ("head-shaolin");
case 2:
return ("head-tianshan");
case 3:
return ("head-dali");
}
return "";
}
}