public static QualifyInformation GetRandomName(int level) { TableQualifyData[] targets = Array.FindAll(table, i => i.Level == level); TableQualifyData tar = targets[UnityEngine.Random.Range(0, targets.Length)]; QualifyInformation r = new QualifyInformation(); AttackValue(r, tar); return(r); }
private static void AttackValue(QualifyInformation r, TableQualifyData tar) { r.ObjNo = tar.ObjNo; if (GameStateInformation.IsEnglish == false) { r.Name = tar.Name; } else { r.Name = tar.NameEn; } }
public static QualifyInformation GetValue(ushort objno) { TableQualifyData tar = Array.Find(table, i => i.ObjNo == objno); QualifyInformation r = new QualifyInformation(); if (CommonFunction.IsNull(tar) == true) { return(r); } AttackValue(r, tar); return(r); }