private void UseTacticCard(CardData card, Player player, Unit unitToUpgrade) { UnitBaseData TempUpgrade = UnitBaseData.CreateInstance <UnitBaseData>(); TempUpgrade.Strength = card.Value; unitToUpgrade.AddTempUpgrade(TempUpgrade); }
public UnitBaseData CreateUpgrade() { UnitBaseData Upgrade = UnitBaseData.CreateInstance <UnitBaseData>(); Upgrade.Type = Type; Upgrade.HP = (int)Mathf.Round((float)BaseData.HP / 10); Upgrade.Strength = (int)Mathf.Round((float)BaseData.Strength / 10); Upgrade.Speed = (int)Mathf.Round((float)BaseData.Speed / 10); return(Upgrade); }