40 lines
699 B
C#
40 lines
699 B
C#
![]() |
using UnityEngine;
|
|||
|
using UnityEngine.UI;
|
|||
|
using TEngine;
|
|||
|
|
|||
|
namespace GameLogic
|
|||
|
{
|
|||
|
[Window(UILayer.UI)]
|
|||
|
class UIPlayerHeadItem : UIWidget
|
|||
|
{
|
|||
|
#region <EFBFBD>ű<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɵĴ<EFBFBD><EFBFBD><EFBFBD>
|
|||
|
private Image m_imgHeadIcon;
|
|||
|
protected override void ScriptGenerator()
|
|||
|
{
|
|||
|
m_imgHeadIcon = FindChildComponent<Image>("Mask/m_imgHeadIcon");
|
|||
|
}
|
|||
|
#endregion
|
|||
|
|
|||
|
#region <EFBFBD>¼<EFBFBD>
|
|||
|
#endregion
|
|||
|
|
|||
|
|
|||
|
protected override void OnCreate()
|
|||
|
{
|
|||
|
base.OnCreate();
|
|||
|
|
|||
|
|
|||
|
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
public void OnInit(UnitPlayerData playerData)
|
|||
|
{
|
|||
|
|
|||
|
|
|||
|
// <20><><EFBFBD><EFBFBD>ͷ<EFBFBD><CDB7>
|
|||
|
AsyncImageDownload.Instance.SetAsyncImage(playerData.protCustMessageData.imgURL, m_imgHeadIcon);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|