31 lines
701 B
C#
31 lines
701 B
C#
using Newtonsoft.Json;
|
|
using System.Collections.Generic;
|
|
|
|
public class girltabledata
|
|
{
|
|
public int n_GirlID;
|
|
public string s_Name, s_Profile, s_ProfileImage;
|
|
|
|
}
|
|
|
|
public class table_girl : table_base
|
|
{
|
|
public static table_girl Ins;
|
|
|
|
List<girltabledata> tableDatas;
|
|
|
|
protected override void Awake()
|
|
{
|
|
Ins = this;
|
|
base.Awake();
|
|
}
|
|
|
|
protected override void Start()
|
|
{
|
|
tableDatas = JsonConvert.DeserializeObject<List<girltabledata>>(json_last);
|
|
base.Start();
|
|
}
|
|
|
|
public List<girltabledata> Get_DataList() { return tableDatas; }
|
|
public girltabledata Get_Data(int girlid) { return Get_DataList().Find(f => f.n_GirlID == girlid); }
|
|
} |