public void ChallengePlayer(Enemy_Behaviour enemy) { int inc_damage = enemy.damage; int given_damage = (int)playerstats.Firepower / 5; player.GetComponent <PlayerBehav>().RecieveDamage(-(inc_damage - (int)playerstats.Endurance / 5)); enemy.RecieveDamage(given_damage); }
public void Attack(Enemy_Behaviour enemy) { int given_damage = (int)playerstats.Firepower / 5; enemy.RecieveDamage(given_damage); }