27 lines
891 B
C#
27 lines
891 B
C#
|
|
using System.Collections;
|
||
|
|
using System.Collections.Generic;
|
||
|
|
using UnityEngine;
|
||
|
|
|
||
|
|
public class ChapterSelect : LobbyNonMenuBase
|
||
|
|
{
|
||
|
|
public GameObject go_comingsoon;
|
||
|
|
|
||
|
|
public override void Set()
|
||
|
|
{
|
||
|
|
base.Set();
|
||
|
|
var lst = table_chaptertext.Ins.Get_DataList();
|
||
|
|
Set_ScrollView(lst);
|
||
|
|
if (lst.Count == m_grid.transform.childCount)
|
||
|
|
{
|
||
|
|
go_comingsoon.transform.parent = m_grid.transform;
|
||
|
|
Reset_Pos(true);
|
||
|
|
}
|
||
|
|
Set_Coroutine(() =>
|
||
|
|
{
|
||
|
|
//var chapter = ServerInfo.Ins.m_ServerData.Get_Common(eCommon.Chapter);
|
||
|
|
//if (chapter > 100) chapter = ServerInfo.Ins.m_ServerData.Get_Common(eCommon.BeforeChapter);
|
||
|
|
//if (chapter < 7) m_scrollview.ResetPosition();
|
||
|
|
//else m_scrollview.SetDragAmount((float)chapter / (lst.Count + 1), 0f, false);
|
||
|
|
}, Time.deltaTime);
|
||
|
|
}
|
||
|
|
}
|