public Unit(CampType campType, ResistanceGroup resistanceGroup, int life) { BattlePropertys = new List <BattleProperty>(); BattlePropertys.Add(new BattleProperty(0, "力量", 10)); BattlePropertys.Add(new BattleProperty(1, "敏捷", 10)); BattlePropertys.Add(new BattleProperty(2, "智力", 10)); BattlePropertys.Add(new BattleProperty(3, "信仰", 10)); foreach (var property in BattlePropertys) { property.Init(this); } weapon = WeaponStore.Obtain(0, this); }
static void Main(string[] args) { var Longsword = WeaponStore.WeaponOne(); var Daggers = WeaponStore.WeaponTwo(); var Scimitars = WeaponStore.WeaponThree(); var Rapier = WeaponStore.WeaponFour(); var BattleAxe = WeaponStore.WeaponFive(); Console.WriteLine(Longsword.Name); Console.WriteLine(Daggers.Name); Console.WriteLine(Scimitars.Name); Console.WriteLine(Rapier.Name); Console.WriteLine(BattleAxe.Name); }
public void triggerClick() { WeaponStore.PurchaseWeapon(m_TheGlass, m_TheWeapon, m_Price, m_Dmg); }
void Awake() { me = this; }