settings
This commit is contained in:
21
Assets/Scripts/UI/Common/Items/NotificationItem.cs
Normal file
21
Assets/Scripts/UI/Common/Items/NotificationItem.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
// 本脚本只在不存在时会生成一次。组件逻辑写在当前脚本内。已存在不会再次生成覆盖
|
||||
|
||||
using UnityEngine;
|
||||
using FairyGUI;
|
||||
using NBC;
|
||||
|
||||
namespace NBF
|
||||
{
|
||||
public partial class NotificationItem : GComponent
|
||||
{
|
||||
private void OnInited()
|
||||
{
|
||||
}
|
||||
|
||||
public void SetData(string message, Notices.NoticeType noticeType)
|
||||
{
|
||||
style.selectedIndex = (int)noticeType;
|
||||
TextContent.text = message;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user