WaiXie_QuestionSystem/Assets/Script/File/GlobalManager.cs

25 lines
577 B
C#
Raw Normal View History

2023-12-11 00:06:54 +08:00
using System.Collections.Generic;
using Script.UI;
2023-12-10 12:28:20 +08:00
namespace Script
{
public class GlobalManager : SingleManager<GlobalManager>
{
2023-12-11 00:06:54 +08:00
private List<SummaryInfo> _list = new List<SummaryInfo>();
public List<SummaryInfo> list
{
get { return _list; }
set { _list = value; }
}
2023-12-12 10:29:10 +08:00
public void SetListID(List<int> ids)
{
_list = new List<SummaryInfo>();
foreach (var id in ids)
{
_list.Add(new SummaryInfo() { id = id });
}
}
2023-12-10 12:28:20 +08:00
}
}