예제 #1
0
파일: Unit.cs 프로젝트: kuuri/tohoSRPG
 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];
 }
예제 #2
0
 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});
 }