public Unit(CharaID id) { this.id = id; acts = new Act[6]; affinity = new Affinity[Enum.GetNames(typeof(Terrain)).Length - 1]; ability = new List<Ability>(); artifact = new Artifact[2]; }
public static Unit SetUnit(CharaID chara, int level) { string name = "Set" + chara.ToString(); MethodInfo mi = typeof(UnitSetting).GetMethod(name, BindingFlags.NonPublic | BindingFlags.Static); return (Unit)mi.Invoke(null, new object[] {level}); }