public static void CreatNewAccount(int a, bool b, string c) //创建账户 { LocaDate date = new LocaDate { }; date.ID = Dates.Count; date.MainAudio = 50; date.BackAudio = 50; date.UserRole = a; date.Sex = b; date.Name = c; date.PhysicalPower = 10; date.Gold = 0; date.Diamonds = 0; Dates.Add(date); Debug.Log("创建新账号" + Dates.Count); }
public static void GetAccount(int a, out LocaDate player) //获得第a个账户数据 { player = Dates[a]; }