예제 #1
0
 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);
 }
예제 #2
0
        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);
        }
예제 #3
0
 public void triggerClick()
 {
     WeaponStore.PurchaseWeapon(m_TheGlass, m_TheWeapon, m_Price, m_Dmg);
 }
예제 #4
0
 void Awake()
 {
     me = this;
 }