23 lines
639 B
C#
23 lines
639 B
C#
// 本脚本只在不存在时会生成一次。组件逻辑写在当前脚本内。已存在不会再次生成覆盖
|
|
|
|
using UnityEngine;
|
|
using FairyGUI;
|
|
using NBC;
|
|
|
|
namespace NBF
|
|
{
|
|
public partial class PlayRightGroup : GComponent
|
|
{
|
|
private void OnInited()
|
|
{
|
|
}
|
|
|
|
public void SetData(VideoRetData videoRetData)
|
|
{
|
|
BtnLike.title = videoRetData.Like.FormatNumber();
|
|
BtnCollect.title = videoRetData.Collect.FormatNumber();
|
|
BtnMessage.title = videoRetData.Message.FormatNumber();
|
|
BtnShare.title = videoRetData.Share.FormatNumber();
|
|
}
|
|
}
|
|
} |