Project_WL/Assets/Script/UI/Center/NoticeUI.cs

34 lines
910 B
C#

using PlayFab.ClientModels;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class NoticeUI : MenuBase
{
public static List<TitleNewsItem> list_news;
public UIScrollView m_Scroll;
public UILabel label_msg;
protected override void Set_Contents()
{
base.Set_Contents();
if (list_news != null && list_news.Count > CurTab)
label_msg.text = list_news[CurTab].Body;
else
label_msg.text = "1시간마다 갱신됩니다.";
m_Scroll.ResetPosition();
}
public void OnClick_GameGuide()
{
WebViewInfo.Ins.Show_WebView("https://cafe.naver.com/lwstory?iframe_url=/ArticleList.nhn%3Fsearch.clubid=30890632%26search.menuid=18%26search.boardtype=L");
}
public void OnClick_Cafe()
{
WebViewInfo.Ins.Show_WebView("https://cafe.naver.com/lwstory");
}
}