Closed nickmattinson closed 2 months ago
public void ActivatePowerUp(string powerUp){ if(powerUp == "AttackUp"){ this.attack += 3; } if(powerUp == "HealthUp"){ // check no more than 100 this.health += 20; if(this.health > 100) { this.health = 100; } } if(powerUp == "DefenseUp"){ // check no more than 100 this.defense += 2; } }