コード例 #1
0
ファイル: Armor.cs プロジェクト: cesarrac/TheyRise-game
    public void UpgradeArmor(ArmorUpgrade upgrade)
    {
        if (upgrade.upgradeType != ItemUpgradeType.Armor)
        {
            Debug.LogError("The ItemUpgrade being passed into the Upgrade callback is not of the type Armor! Is the Item improperly constructed??");
            return;
        }

        armorStats.Upgrade(upgrade.defense, upgrade.shield);
    }