Пример #1
0
    // Start is called before the first frame update
    void Start()
    {
        Weapon weapon = new Weapon(5, "iceSword", 100);
        Armor  armor  = new Armor(10, "IceArmor", 520);

        weapon.Buy();
        weapon.Attack();
        armor.Buy();
        armor.Protect();
    }